Skip to content

Commit

Permalink
chore: remove unnecessary data prop from items #1887
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Apr 18, 2023
1 parent 9f73da5 commit 9918adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ const
},
onClick = handleOnClick(name, value, path),
getItemProps: (commands: Command[]) => Fluent.IContextualMenuItem[] = commands =>
commands.map(({ name, label, caption, icon, value, data, items }) => ({
commands.map(({ name, label, caption, icon, value, items }) => ({
key: name,
text: label,
title: caption,
iconProps: { iconName: icon },
data: value ?? data, disabled,
disabled,
onClick: handleOnClick(name, value),
subMenuProps: items
? { items: getItemProps(items), styles: { subComponentStyles } }
Expand Down

0 comments on commit 9918adc

Please sign in to comment.