diff options
author | bobzel <zzzman@gmail.com> | 2025-05-07 11:21:53 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-05-07 11:21:53 -0400 |
commit | d0cbb43ec3fa19f76a570f5e0038bfc72c9f37b9 (patch) | |
tree | 33e6351bfbbdcd8019579a90e8636725ed1bc1c5 /src/client/views/smartdraw/SmartDrawHandler.tsx | |
parent | 74836a59c4af0a3c240c5e3435359935282ce049 (diff) |
fixed dont_center on Docs in gridview. fixed ai view screentolocal in docView, and made ai view more streamlined. got rid of ai history sidebar in images. fixed imageeditor to use a mask that doesn't show the original conctents. fixed gptpopup scrolling, turning off of spinner, and improved ability to filter Docs
Diffstat (limited to 'src/client/views/smartdraw/SmartDrawHandler.tsx')
-rw-r--r-- | src/client/views/smartdraw/SmartDrawHandler.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/smartdraw/SmartDrawHandler.tsx b/src/client/views/smartdraw/SmartDrawHandler.tsx index 4f0cd3978..a6e221f3e 100644 --- a/src/client/views/smartdraw/SmartDrawHandler.tsx +++ b/src/client/views/smartdraw/SmartDrawHandler.tsx @@ -398,7 +398,7 @@ export class SmartDrawHandler extends ObservableReactComponent<object> { */ colorWithGPT = async (drawing: Doc) => { const img = await DocumentView.GetDocImage(drawing); - const { href } = ImageCast(img).url; + const { href } = ImageCast(img)?.url ?? { href: '' }; const hrefParts = href.split('.'); const hrefComplete = `${hrefParts[0]}_o.${hrefParts[1]}`; try { |