Add selectedVersion checks in multiple components to prevent API calls without a valid version
This commit is contained in:
@@ -41,6 +41,7 @@ function Products() {
|
||||
}, [comparisonProduct])
|
||||
|
||||
useEffect(() => {
|
||||
if (!selectedVersion) return;
|
||||
getAllProductsApi(projectId || '', selectedVersion?.versionId || '').then((data) => {
|
||||
if (data && data.length === 0) {
|
||||
const id = THREE.MathUtils.generateUUID();
|
||||
|
||||
Reference in New Issue
Block a user