Skip to content

Commit

Permalink
Assignment wizard hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjameson committed Aug 1, 2024
1 parent 816ba2d commit 11531aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 11531aa

Please sign in to comment.