Skip to content

Commit

Permalink
Access document on client side
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Aug 25, 2021
1 parent b223a5d commit 4b1fb7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/manage/Blocks/FiltersBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const View = ({ content, ...props }) => {
const mounted = useRef(false);
const modalButtonTitle = props.data.modalButtonTitle?.value;
const locationResultsTexts = locationResults.map((result) => result.text);
const mapSidebarExists = document?.getElementById('map-sidebar');
const mapSidebarExists = __CLIENT__
? document?.getElementById('map-sidebar')
: false;

const searchResults = [
...locationResults.map((result) => result.text),
Expand Down

0 comments on commit 4b1fb7c

Please sign in to comment.