mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-19 08:05:20 +00:00
positive prompt fix
This commit is contained in:
1 parent
8a8172cd74
commit
a943dfd251
1 file changed
+4
-3
@@ -62,11 +62,12 @@ export const Prompts = ({ selection }: Props) => {
|
||||
Math.random() * RandomTextsPositive[selection].length,
|
||||
);
|
||||
const randomText = RandomTextsPositive[selection][randomIndex];
|
||||
if (editorEngine !== null) {
|
||||
editorEngine.positive_prompt = randomText;
|
||||
if (editorEngine === null) {
|
||||
console.log("Editor is null");
|
||||
return;
|
||||
}
|
||||
promptsStore.isUserInputPositive.value = false;
|
||||
Editor.positive_prompt = randomText;
|
||||
editorEngine.positive_prompt = randomText;
|
||||
promptsStore.textBufferPositive.value = randomText;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user