From 1bf75ea854e4f32cd4cec4070ad3fe3f08ab44d3 Mon Sep 17 00:00:00 2001 From: Collin Beczak <88843144+CollinBeczak@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:46:56 -0500 Subject: [PATCH] Fix mobile instructions widget error (#2074) * Add barrier for undefined props * fix leveling higher order components * fix if statement --- src/hooks/UseMRProperties/UseMRProperties.js | 4 ++++ 1 file changed, 4 insertions(+) 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'], }