From 9db264231e554734208ea3657f952a79fdf62ce1 Mon Sep 17 00:00:00 2001 From: Ilya Bogdanov Date: Tue, 2 Apr 2024 16:33:14 +0400 Subject: [PATCH] Fix project edits (#9594) Fixes the issue that prevents project edits from being committed. --- app/gui2/ydoc-server/edits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/gui2/ydoc-server/edits.ts b/app/gui2/ydoc-server/edits.ts index 30e63865f65..00f8aa27873 100644 --- a/app/gui2/ydoc-server/edits.ts +++ b/app/gui2/ydoc-server/edits.ts @@ -46,7 +46,7 @@ export function applyDocumentUpdates( synced: EnsoFileParts, update: ModuleUpdate, ): AppliedUpdates { - const codeChanged = update.nodesUpdated.size && update.nodesAdded.size && update.nodesDeleted.size + const codeChanged = update.nodesUpdated.size || update.nodesAdded.size || update.nodesDeleted.size let idsChanged = false let metadataChanged = false for (const { changes } of update.metadataUpdated) {