reset to values to default when switching property editor

This commit is contained in:
Niels Lyngsø
2024-05-23 14:15:33 +02:00
parent 4a54d71d70
commit a6a416022d

View File

@@ -144,7 +144,8 @@ export class UmbDataTypeWorkspaceContext
await this.#observePropertyEditorSchemaAlias();
}
if (this.getIsNew()) {
const oldPropertyEditorUIAlias = this.#persistedData.getValue()?.editorUiAlias;
if (this.getIsNew() || oldPropertyEditorUIAlias !== propertyEditorUiAlias) {
this.#transferConfigDefaultData();
}
this._mergeConfigProperties();