From 9918adc11c996437bf3624eb99d4dcc151e88f13 Mon Sep 17 00:00:00 2001 From: Marek Mihok Date: Tue, 18 Apr 2023 10:18:15 +0200 Subject: [PATCH] chore: remove unnecessary data prop from items #1887 --- ui/src/button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/button.tsx b/ui/src/button.tsx index 87e521c3cb..6c7c5b427f 100644 --- a/ui/src/button.tsx +++ b/ui/src/button.tsx @@ -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 } }