aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-12-17 13:46:11 -0500
committerbobzel <zzzman@gmail.com>2024-12-17 13:46:11 -0500
commit337fbd9c4ce14a548e8b897c2cbb23d5de2a892f (patch)
treebbb515bf25e7a6d9b66a5f1a3225b17575d659bf
parentb7105063030ee29ba644d8fbb5878c8ee41fd389 (diff)
fixed DrawingFillHandler o reconstruct structureUrl properly.
-rw-r--r--src/client/views/smartdraw/DrawingFillHandler.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/smartdraw/DrawingFillHandler.tsx b/src/client/views/smartdraw/DrawingFillHandler.tsx
index 32416cec5..48e71bc9f 100644
--- a/src/client/views/smartdraw/DrawingFillHandler.tsx
+++ b/src/client/views/smartdraw/DrawingFillHandler.tsx
@@ -12,7 +12,7 @@ export class DrawingFillHandler {
if (imageField) {
const { href } = ImageCast(imageField).url;
const hrefParts = href.split('.');
- const structureUrl = `${hrefParts[0]}_o.${hrefParts[1]}`;
+ const structureUrl = `${hrefParts.slice(0, -1).join('.')}_o.${hrefParts.lastElement()}`;
const strength: number = 100;
Networking.PostToServer('/queryFireflyImageFromStructure', { prompt, structureUrl, strength }).then((info: Upload.ImageInformation) =>
DocumentViewInternal.addDocTabFunc(Docs.Create.ImageDocument(info.accessPaths.agnostic.client, {}), OpenWhere.addRight)) // prettier-ignore