From a0c57d50c5a2bc78398321f0b5cdda058f644e84 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 26 Mar 2024 15:10:51 +0100 Subject: [PATCH] fix(export): more resilient export queries for uncleaned data (#2320) --- src/app/core/export/query.service.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/core/export/query.service.ts b/src/app/core/export/query.service.ts index 9021b7caca..a9fcf361f1 100644 --- a/src/app/core/export/query.service.ts +++ b/src/app/core/export/query.service.ts @@ -271,6 +271,13 @@ export class QueryService { } return ids + .filter((id) => { + if (typeof id !== "string") { + console.debug("invalid entity id in Query :toEntities", id); + return false; + } + return true; + }) .map((id) => { const prefix = id.split(":")[0]; return this.entities[prefix][id];