Skip to content

Commit

Permalink
fix toggleHpTools to support split primary button (OHIF#3900)
Browse files Browse the repository at this point in the history
Fixes a small bug in toggling buttons with hanging protocols.
  • Loading branch information
m00n620 authored and thanh-nguyen-dang committed Apr 30, 2024
1 parent c1529a8 commit 8ad92b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/default/src/commandsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ const commandsModule = ({
if (!button.id) {
return;
}
const { commands, items } = button.props || button;
const { commands, items, primary } = button.props || button;
if (primary) {
enableListener(primary);
}
if (items) {
items.forEach(enableListener);
}
Expand Down

0 comments on commit 8ad92b4

Please sign in to comment.