fix(tmtv): side panel crashing when activeToolOptions is not an array (#4189)
This commit is contained in:
parent
4c8a808a12
commit
85a82fac0e
@ -29,7 +29,7 @@ function ToolboxUI(props: withAppTypes) {
|
|||||||
const prevToolOptions = usePrevious(activeToolOptions);
|
const prevToolOptions = usePrevious(activeToolOptions);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!activeToolOptions) {
|
if (!activeToolOptions || Array.isArray(activeToolOptions) === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user