Merge remote-tracking branch 'origin/main-dev' into feature/layout-comparison-version
This commit is contained in:
@@ -28,11 +28,11 @@ function GroupControls() {
|
||||
useEffect(() => {
|
||||
if (!projectId || !selectedVersion) return;
|
||||
|
||||
getAssetGroupsApi(projectId, selectedVersion.versionId).then((data) => {
|
||||
if (data && data.length > 0) {
|
||||
setGroups(data);
|
||||
}
|
||||
});
|
||||
// getAssetGroupsApi(projectId, selectedVersion.versionId).then((data) => {
|
||||
// if (data && data.length > 0) {
|
||||
// setGroups(data);
|
||||
// }
|
||||
// });
|
||||
}, [projectId, selectedVersion]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -40,7 +40,7 @@ function Products() {
|
||||
}, [comparisonScene, layout]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!selectedVersion || !simulationSocket || selectedProduct.productUuid !== "" || !projectId) return;
|
||||
if (!selectedVersion || !simulationSocket || !projectId) return;
|
||||
getAllProductsApi(projectId || "", selectedVersion.versionId)
|
||||
.then((data) => {
|
||||
if (data && data.length === 0) {
|
||||
@@ -112,7 +112,7 @@ function Products() {
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
});
|
||||
}, [selectedVersion?.versionId, simulationSocket, selectedProduct, projectId, userId, organization]);
|
||||
}, [selectedVersion?.versionId, simulationSocket, projectId, userId, organization]);
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedProduct.productUuid) {
|
||||
|
||||
Reference in New Issue
Block a user