aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/smartdraw/DrawingFillHandler.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-11 18:15:34 -0400
committerbobzel <zzzman@gmail.com>2025-03-11 18:15:34 -0400
commit79f44d95eb789d7b3cca33eedc38072f2bb43d2a (patch)
tree3f3556b129668633cc3d51104721744a5b1023d3 /src/client/views/smartdraw/DrawingFillHandler.tsx
parent53b6682830fc5331a22db94e779bc17089d906cb (diff)
fixed calling firefly api for expand image
Diffstat (limited to 'src/client/views/smartdraw/DrawingFillHandler.tsx')
-rw-r--r--src/client/views/smartdraw/DrawingFillHandler.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/smartdraw/DrawingFillHandler.tsx b/src/client/views/smartdraw/DrawingFillHandler.tsx
index c672bc718..37799a98d 100644
--- a/src/client/views/smartdraw/DrawingFillHandler.tsx
+++ b/src/client/views/smartdraw/DrawingFillHandler.tsx
@@ -48,6 +48,7 @@ export class DrawingFillHandler {
.then(res => {
const genratedDocs = DocCast(drawing.ai_firefly_generatedDocs) ?? Docs.Create.MasonryDocument([], { _width: 400, _height: 400 });
drawing[DocData].ai_firefly_generatedDocs = genratedDocs;
+ if ('error' in res) throw new Error(res.error as string);
(res as Upload.ImageInformation[]).map(info =>
Doc.AddDocToList(
genratedDocs,