fix(tmtv): side panel crashing when activeToolOptions is not an array (#4189)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-05-30 11:50:23 -04:00
1 parent c02a4f2e26
commit 19b5b1c15c
1 file changed
+1 -1
@@ -29,7 +29,7 @@ function ToolboxUI(props: withAppTypes) {
const prevToolOptions = usePrevious(activeToolOptions);
useEffect(() => {
if (!activeToolOptions) {
if (!activeToolOptions || Array.isArray(activeToolOptions) === false) {
return;
}