mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not show [prompt]
in preset preview
This commit is contained in:
parent
ddeafc6833
commit
5c37391883
@ -8,7 +8,7 @@ export const getViewModeChunks = (currentPrompt: string, presetPrompt?: string):
|
||||
const [before, after] = presetPrompt.split(PRESET_PLACEHOLDER, 2);
|
||||
|
||||
if (!before || !after) {
|
||||
return ['', `${currentPrompt} `, presetPrompt];
|
||||
return ['', `${currentPrompt} `, before || after || ''];
|
||||
}
|
||||
|
||||
return [before ?? '', currentPrompt, after ?? ''];
|
||||
|
Loading…
Reference in New Issue
Block a user