From 6db30e2f7a6dbd772caf02dc3d6d93117200c9f5 Mon Sep 17 00:00:00 2001 From: tkleinke Date: Wed, 8 Nov 2023 18:01:30 +0100 Subject: [PATCH] Improve performance of warnings updater --- core/src/datastore/warnings-updater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/datastore/warnings-updater.ts b/core/src/datastore/warnings-updater.ts index 9637d61004..a1432738ac 100644 --- a/core/src/datastore/warnings-updater.ts +++ b/core/src/datastore/warnings-updater.ts @@ -50,7 +50,7 @@ export module WarningsUpdater { ); } } - } else if (document.warnings) { + } else if (document.warnings?.nonUniqueIdentifier) { delete document.warnings.nonUniqueIdentifier; if (!Warnings.hasWarnings(document.warnings)) delete document.warnings; indexFacade.put(document);