Skip to content

Commit cdeb662

Browse files
committed
fix: guard infoMenuElement subMenu against undefined params
1 parent f9fdf6f commit cdeb662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/graphics/layers/RadialMenuElements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export const infoMenuElement: MenuElement = {
488488
icon: infoIcon,
489489
color: COLORS.info,
490490
subMenu: (params: MenuElementParams): MenuElement[] => {
491-
if (!params.selected) return [];
491+
if (params === undefined || !params.selected) return [];
492492

493493
const recipient = params.selected;
494494
const presets = QuickChatPresetService.getInstance().load();

0 commit comments

Comments
 (0)