Skip to content

Commit

Permalink
Fix toolbox options mapping bug in Toolbox.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Apr 24, 2024
1 parent 75f4fd2 commit 7e792d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/ui/src/components/Toolbox/Toolbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function Toolbox({ servicesManager, buttonSectionId, commandsManager, title, ...
const currentToolBoxStateStr = JSON.stringify(
Object.keys(toolboxState.toolOptions).map(tool => {
const options = toolboxState.toolOptions[tool];
return options.map(option => `${option.id}-${option.value}`);
if (Array.isArray(options)) {
return options?.map(option => `${option.id}-${option.value}`);
}
})
);

Expand Down

0 comments on commit 7e792d0

Please sign in to comment.