We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e844ec8 commit 2666517Copy full SHA for 2666517
src/app/core/config/migrate-add-entity-attributes.ts
@@ -4,7 +4,10 @@ import { EntityConfig } from "../entity/entity-config";
4
export function migrateAddMissingEntityAttributes(config: Config): Config {
5
for (let entityType of Object.keys(DEFAULT_ENTITIES)) {
6
// TODO: just blindly save all hard-coded fields into the entity config? or scan which ones are actually used?!
7
- if (!JSON.stringify(config).includes(`"${entityType}"`)) {
+ if (
8
+ !JSON.stringify(config).includes(`"${entityType}"`) ||
9
+ ["Note", "User"].includes(entityType)
10
+ ) {
11
// don't add config if the entity is never explicitly used or referenced
12
continue;
13
}
0 commit comments