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