FIX: New illustrate post suggestions should be auto tracked (#412)

This commit is contained in:
Keegan George 2024-01-10 09:04:10 -08:00 committed by GitHub
parent abde82c1f3
commit 726cffc8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,7 @@ export default class AiHelperContextMenu extends Component {
@tracked previousMenuState = null; @tracked previousMenuState = null;
@tracked customPromptValue = ""; @tracked customPromptValue = "";
@tracked initialValue = ""; @tracked initialValue = "";
@tracked thumbnailSuggestions = null;
CONTEXT_MENU_STATES = { CONTEXT_MENU_STATES = {
triggers: "TRIGGERS", triggers: "TRIGGERS",
@ -371,6 +372,7 @@ export default class AiHelperContextMenu extends Component {
// resets the values if new suggestion is started: // resets the values if new suggestion is started:
this.diff = null; this.diff = null;
this.newSelectedText = null; this.newSelectedText = null;
this.thumbnailSuggestions = null;
if (option.name === "illustrate_post") { if (option.name === "illustrate_post") {
this._toggleLoadingState(false); this._toggleLoadingState(false);