sort props to align with data source

This commit is contained in:
Niels Lyngsø
2024-11-07 13:53:06 +01:00
parent 14b388bfd8
commit f6bdb8dc90

View File

@@ -400,7 +400,8 @@ export abstract class UmbContentDetailWorkspaceContextBase<
throw new Error(`Editor Alias of "${property.dataType.unique}" not found.`);
}
const entry = { ...variantId.toObject(), alias, editorAlias, value } as UmbElementValueModel;
// Notice the order of the properties is important for our JSON String Compare function. [NL]
const entry = { editorAlias, alias, ...variantId.toObject(), value } as UmbElementValueModel;
const currentData = this.getData();
if (currentData) {