diff --git a/src/hooks/UseMRProperties/UseMRProperties.js b/src/hooks/UseMRProperties/UseMRProperties.js index 210d4111a..9d14453dc 100644 --- a/src/hooks/UseMRProperties/UseMRProperties.js +++ b/src/hooks/UseMRProperties/UseMRProperties.js @@ -18,6 +18,10 @@ const useMRProperties = workspaceContext => { const [properties, setProperties] = useState({}) useEffect(() => { + if(!workspaceContext){ + return null + } + const mrProperties = { '#mapZoom': workspaceContext['taskMapZoom'], }