diff --git a/src/app/core/config/migrate-add-entity-attributes.ts b/src/app/core/config/migrate-add-entity-attributes.ts index cb5b7dd99b..387fde9fb1 100644 --- a/src/app/core/config/migrate-add-entity-attributes.ts +++ b/src/app/core/config/migrate-add-entity-attributes.ts @@ -5,7 +5,7 @@ import { RecurringActivity } from "../../child-dev-project/attendance/model/recu export function migrateAddMissingEntityAttributes(config: Config): Config { for (let entityType of Object.keys(DEFAULT_ENTITIES)) { // TODO: just blindly save all hard-coded fields into the entity config? or scan which ones are actually used?! - if (!JSON.stringify(config).includes(`"${entityType}"`)) { + if (!JSON.stringify(config).includes(`"${entityType}"`) || ["Note", "User"].includes(entityType)) { // don't add config if the entity is never explicitly used or referenced continue; }