Skip to content

Commit

Permalink
fix(export): more resilient export queries for uncleaned data (#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig authored Mar 26, 2024
1 parent b454f5c commit a0c57d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/core/export/query.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a0c57d5

Please sign in to comment.