We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4ce0e0 commit b50c44bCopy full SHA for b50c44b
invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx
@@ -136,7 +136,10 @@ export const ParamPositivePrompt = memo(() => {
136
}
137
const clamped = Math.max(0, Math.min(idx, list.length - 1));
138
browsingIndexRef.current = clamped;
139
- dispatch(positivePromptChanged(list[clamped]));
+ const historyItem = list[clamped];
140
+ if (historyItem !== undefined) {
141
+ dispatch(positivePromptChanged(historyItem));
142
+ }
143
requestAnimationFrame(() => {
144
const el = textareaRef.current;
145
if (!el) {
0 commit comments