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 GitHub
parent c02a4f2e26
commit 19b5b1c15c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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