fix(fe2): Uncomment code around model duplication (#2257)

* Uncomment code around model duplication

* Update comment around deduplication
This commit is contained in:
andrewwallacespeckle
2024-06-05 12:49:30 +02:00
committed by GitHub
parent 7ffd0f7490
commit e6bde7aab3
@@ -616,8 +616,9 @@ function setupResponseResourceItems(
const modelId = item.modelId
const objectId = item.objectId
// In case we want to go back to 1 resource per model:
// if (modelId && encounteredModels.has(modelId)) continue
// Uncommenting the following line resolved model duplication issues in the Model Panel
// without affecting diffing functionality. If future diffing problems arise, revisit this.
if (modelId && encounteredModels.has(modelId)) continue
if (encounteredObjects.has(objectId)) continue
finalItems.push(item)