Skip to content

Commit

Permalink
Fix mobile instructions widget error (#2074)
Browse files Browse the repository at this point in the history
* Add barrier for undefined props

* fix leveling higher order components

* fix if statement
  • Loading branch information
CollinBeczak authored Sep 1, 2023
1 parent 3972e6c commit 1bf75ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hooks/UseMRProperties/UseMRProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const useMRProperties = workspaceContext => {
const [properties, setProperties] = useState({})

useEffect(() => {
if(!workspaceContext){
return null
}

const mrProperties = {
'#mapZoom': workspaceContext['taskMapZoom'],
}
Expand Down

0 comments on commit 1bf75ea

Please sign in to comment.