Skip to content

Commit a79136b

Browse files
psychedeliciousmaryhipp
authored andcommitted
fix(ui): always add selectModelsTab hotkey data to prevent unhandled exception while registering the hotkey handler
1 parent 944af4d commit a79136b

File tree

1 file changed

+1
-3
lines changed
  • invokeai/frontend/web/src/features/system/components/HotkeysModal

1 file changed

+1
-3
lines changed

invokeai/frontend/web/src/features/system/components/HotkeysModal/useHotkeyData.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ export const useHotkeyData = (): HotkeysData => {
7979
addHotkey('app', 'selectCanvasTab', ['1']);
8080
addHotkey('app', 'selectUpscalingTab', ['2']);
8181
addHotkey('app', 'selectWorkflowsTab', ['3']);
82-
if (isModelManagerEnabled) {
83-
addHotkey('app', 'selectModelsTab', ['4']);
84-
}
82+
addHotkey('app', 'selectModelsTab', ['4'], isModelManagerEnabled);
8583
addHotkey('app', 'selectQueueTab', isModelManagerEnabled ? ['5'] : ['4']);
8684
addHotkey('app', 'focusPrompt', ['alt+a']);
8785
addHotkey('app', 'toggleLeftPanel', ['t', 'o']);

0 commit comments

Comments
 (0)