Skip to content

Commit 9e69098

Browse files
ert78gbmondalaci
authored andcommitted
fix(keymap): Secondary role show 'None' value if not set (#496)
* fix(keymaps): Secondary role show 'None' value if not set * style: move else in the same line with the close if }
1 parent 4aae62e commit 9e69098

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/uhk-web/src/app/components/popover/tab/keypress/keypress-tab.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ export class KeypressTabComponent extends Tab implements OnChanges {
103103
// Restore secondaryRoleAction
104104
if (keystrokeAction.secondaryRoleAction !== undefined) {
105105
this.selectedSecondaryRoleIndex = this.mapper.modifierMapper(keystrokeAction.secondaryRoleAction);
106+
} else {
107+
this.selectedSecondaryRoleIndex = -1;
106108
}
107109

108110
return true;

0 commit comments

Comments
 (0)