Skip to content

Commit c5a61d9

Browse files
杨广杨广
authored andcommitted
fix(tabbar): fix missing keybindingRegistry dependency in IconTabView
1 parent 872ebf6 commit c5a61d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main-layout/src/browser/tabbar/bar.view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export const IconTabView: FC<{ component: ComponentRegistryProvider }> = ({ comp
251251
return `${options?.title} (${keybindingRegistry.acceleratorForKeyString(options.activateKeyBinding, '+')})`;
252252
}
253253
return options?.title;
254-
}, [component]);
254+
}, [component, keybindingRegistry]);
255255

256256
useEffect(() => {
257257
const dispose = component.onChange((newComponent) => {

0 commit comments

Comments
 (0)