From 11531aa8a323f232d490d249af945a5741e2bdbb Mon Sep 17 00:00:00 2001 From: lorinjameson Date: Thu, 1 Aug 2024 16:33:22 -0400 Subject: [PATCH] Assignment wizard hot fix --- .../AssignmentsView/Wizard/Progress/ProgressUpdating.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/project-home/AssignmentsView/Wizard/Progress/ProgressUpdating.tsx b/src/apps/project-home/AssignmentsView/Wizard/Progress/ProgressUpdating.tsx index 9e8c5e84..85bf6f5b 100644 --- a/src/apps/project-home/AssignmentsView/Wizard/Progress/ProgressUpdating.tsx +++ b/src/apps/project-home/AssignmentsView/Wizard/Progress/ProgressUpdating.tsx @@ -104,7 +104,7 @@ export const ProgressUpdating = (props: ProgressUpdatingProps) => { // - check for added read only layers on new documents for (let i = 0; i < documentChanges.added.length; i++) { const doc = documentChanges.added[i]; - const prevDoc = previous.documents.find((d) => (d.id = doc.id)); + const prevDoc = previous.documents.find((d) => d.id === doc.id); const layerDiff = diff(prevDoc!.layers, doc.layers); if (layerDiff.added.length > 0) { // Look for added layers @@ -160,7 +160,7 @@ export const ProgressUpdating = (props: ProgressUpdatingProps) => { // Step 3 - check for added read only layers documents for (let i = 0; i < documentChanges.unchanged.length; i++) { const doc = documentChanges.unchanged[i]; - const prevDoc = previous.documents.find((d) => (d.id = doc.id)); + const prevDoc = previous.documents.find((d) => d.id === doc.id); const layerDiff = diff(prevDoc!.layers, doc.layers); if (layerDiff.added.length > 0) {