aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/StyleProviderQuiz.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-23 16:34:40 -0500
committerbobzel <zzzman@gmail.com>2025-02-23 16:34:40 -0500
commit30ec70722678eba318fb7521a8b2bd642328bf54 (patch)
treee4d5fb25224db75a341aa72350802634529074a0 /src/client/views/StyleProviderQuiz.tsx
parent7b6755e33a8e14e96cd0cd2df2dc26b88a8171c6 (diff)
added option+maximize to open in doc editor view (currently only for images). fixed imageEditor to generate edits the first time through.
Diffstat (limited to 'src/client/views/StyleProviderQuiz.tsx')
-rw-r--r--src/client/views/StyleProviderQuiz.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProviderQuiz.tsx b/src/client/views/StyleProviderQuiz.tsx
index d8eeb3490..db9ab831a 100644
--- a/src/client/views/StyleProviderQuiz.tsx
+++ b/src/client/views/StyleProviderQuiz.tsx
@@ -125,7 +125,7 @@ export namespace styleProviderQuiz {
try {
const hrefBase64 = await createCanvas(img);
const response = await gptImageLabel(hrefBase64, 'Make flashcards out of this image with each question and answer labeled as "question" and "answer". Do not label each flashcard and do not include asterisks: ');
- AnchorMenu.Instance.transferToFlashcard(response, NumCast(img.layoutDoc['x']), NumCast(img.layoutDoc['y']));
+ AnchorMenu.Instance.transferToFlashcard(response, NumCast(img.layoutDoc.x), NumCast(img.layoutDoc.y));
} catch (error) {
console.log('Error', error);
}