diff options
| author | bobzel <zzzman@gmail.com> | 2025-03-10 18:02:07 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-03-10 18:02:07 -0400 |
| commit | 04669ffeb163688c7aefd7b5face7998252abdca (patch) | |
| tree | c5ee30f1e6ba3bd3355733bb3a0d3af63d071ac2 /src/client/views/smartdraw | |
| parent | 7bc2596aef61dddabe081fa832cbcbdef497c646 (diff) | |
removed label creation from text's anchor menu. removed label creation from pdfs.
Diffstat (limited to 'src/client/views/smartdraw')
| -rw-r--r-- | src/client/views/smartdraw/StickerPalette.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/smartdraw/StickerPalette.tsx b/src/client/views/smartdraw/StickerPalette.tsx index d5307974f..e3305851a 100644 --- a/src/client/views/smartdraw/StickerPalette.tsx +++ b/src/client/views/smartdraw/StickerPalette.tsx @@ -151,7 +151,7 @@ export class StickerPalette extends ObservableReactComponent<StickerPaletteProps numberRange(3).map(i => { return this._showRegenerate ? SmartDrawHandler.Instance.regenerate(prevDrawings, this._opts, this._gptRes[i], this._userInput) - : SmartDrawHandler.Instance.drawWithGPT({ X: 0, Y: 0 }, this._userInput, this._opts.complexity, this._opts.size, this._opts.autoColor); + : SmartDrawHandler.Instance.drawWithGPT({ X: 0, Y: 0 }, this._userInput, this._opts.complexity || 0, this._opts.size || 0, !!this._opts.autoColor); }) ).then(() => { this._opts.text !== '' ? (this._opts.text = `${this._opts.text} ~~~ ${this._userInput}`) : (this._opts.text = this._userInput); @@ -177,7 +177,7 @@ export class StickerPalette extends ObservableReactComponent<StickerPaletteProps const cIndex = NumCast(this._props.Document.carousel_index); const focusedDrawing = DocListCast(this._props.Document.data)[cIndex]; const docData = focusedDrawing[DocData]; - docData.title = this._opts.text.match(/^(.*?)~~~.*$/)?.[1] || this._opts.text; + docData.title = this._opts.text?.match(/^(.*?)~~~.*$/)?.[1] || this._opts.text; docData.ai_drawing_input = this._opts.text; docData.ai_drawing_complexity = this._opts.complexity; docData.ai_drawing_colored = this._opts.autoColor; |
