Add selectedVersion checks in multiple components to prevent API calls without a valid version
This commit is contained in:
@@ -49,6 +49,7 @@ const FloorPlanGroup = ({ floorPlanGroup, floorPlanGroupLine, floorPlanGroupPoin
|
||||
}, [toolMode, state]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!selectedVersion) return;
|
||||
|
||||
getLines(organization, projectId, selectedVersion?.versionId || '').then((data) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user