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

This commit is contained in:
Ibrahim 2024-05-30 11:50:23 -04:00 committed by Alireza
parent 4c8a808a12
commit 85a82fac0e

View File

@ -29,7 +29,7 @@ function ToolboxUI(props: withAppTypes) {
const prevToolOptions = usePrevious(activeToolOptions);
useEffect(() => {
if (!activeToolOptions) {
if (!activeToolOptions || Array.isArray(activeToolOptions) === false) {
return;
}