diff --git a/src/dashboardWebView/components/ChoiceButton.tsx b/src/dashboardWebView/components/ChoiceButton.tsx index 6f00b4db..84929f4d 100644 --- a/src/dashboardWebView/components/ChoiceButton.tsx +++ b/src/dashboardWebView/components/ChoiceButton.tsx @@ -37,9 +37,9 @@ export const ChoiceButton: React.FunctionComponent = ({onCli
- {choices.map((choice) => ( + {choices.map((choice, idx) => ( diff --git a/src/dashboardWebView/components/Header/Header.tsx b/src/dashboardWebView/components/Header/Header.tsx index c2ef7782..b665cd94 100644 --- a/src/dashboardWebView/components/Header/Header.tsx +++ b/src/dashboardWebView/components/Header/Header.tsx @@ -57,9 +57,9 @@ export const Header: React.FunctionComponent = ({totalPages, folde Messenger.send(DashboardMessage.runCustomScript, { script }); }; - const customActions: any[] = (settings?.scripts || []).filter(s => s.bulk && (s.type === "content" || !s.type)).map(s => ({ + const customActions: any[] = (settings?.scripts || []).filter(s => s.bulk && (s.type === "content" || !s.type)).map((s, idx) => ({ title: ( -
+
{s.title}