From 337fbd9c4ce14a548e8b897c2cbb23d5de2a892f Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 17 Dec 2024 13:46:11 -0500 Subject: fixed DrawingFillHandler o reconstruct structureUrl properly. --- src/client/views/smartdraw/DrawingFillHandler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2