Add selectedVersion checks in multiple components to prevent API calls without a valid version

This commit is contained in:
2025-06-23 10:09:09 +05:30
parent 1ac0e86e74
commit 5d0c36071e
7 changed files with 12 additions and 4 deletions

View File

@@ -49,6 +49,7 @@ const FloorPlanGroup = ({ floorPlanGroup, floorPlanGroupLine, floorPlanGroupPoin
}, [toolMode, state]);
useEffect(() => {
if (!selectedVersion) return;
getLines(organization, projectId, selectedVersion?.versionId || '').then((data) => {