Commit d2a1e9ce authored by Elisabeth Reuhl's avatar Elisabeth Reuhl
Browse files

Fixed error in useEffect: dataObjectsByString is no longer rendered on page load

parent 18b436a1
......@@ -242,7 +242,7 @@ export const OurMap = () => {
}, [dataContext, input.showRelatedObjects]);
useEffect( () => {
if (dataObjectsByString && input.showSearchResults && (input.searchStr!==""||input.projectList.length!==0||input.chronOntologyTerm!==""
if (dataObjectsByString && input.showSearchResults && (input.searchStr!==""||input.checkedProjects.length!==0||input.chronOntologyTerm!==""
||(input.boundingBoxCorner1.length!==0&&input.boundingBoxCorner2.length!==0))) {
setMapDataObjectsByString(dataObjectsByString);
console.log("rerender dataObjectsByString!");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment