Skip to content

Commit

Permalink
fix(tmtv): side panel crashing when activeToolOptions is not an array (
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE authored May 30, 2024
1 parent c02a4f2 commit 19b5b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/ui/src/components/Toolbox/ToolboxUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ToolboxUI(props: withAppTypes) {
const prevToolOptions = usePrevious(activeToolOptions);

useEffect(() => {
if (!activeToolOptions) {
if (!activeToolOptions || Array.isArray(activeToolOptions) === false) {
return;
}

Expand Down

0 comments on commit 19b5b1c

Please sign in to comment.