mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 16:45:07 -05:00
fix(ui): when no negative prompt is provided, recall it as null
This commit is contained in:
@@ -269,7 +269,7 @@ const NegativePrompt: SingleMetadataHandler<ParameterNegativePrompt> = {
|
||||
return Promise.resolve(parsed);
|
||||
},
|
||||
recall: (value, store) => {
|
||||
store.dispatch(negativePromptChanged(value));
|
||||
store.dispatch(negativePromptChanged(value || null));
|
||||
},
|
||||
LabelComponent: () => <MetadataLabel i18nKey="metadata.negativePrompt" />,
|
||||
ValueComponent: ({ value }: SingleMetadataValueProps<ParameterNegativePrompt>) => (
|
||||
|
||||
Reference in New Issue
Block a user