diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/smartdraw/DrawingFillHandler.tsx | 2 |
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 |