Update content-data-manager.ts

This commit is contained in:
Mads Rasmussen
2025-04-16 10:25:56 +02:00
parent 13109d7342
commit fbdf69e680

View File

@@ -72,6 +72,8 @@ export class UmbContentWorkspaceDataManager<
if (variantId.isInvariant()) {
this.#updateInvariantData(update);
} else {
// The server requires a segment name. It doesn't matter what it is as long as it is not empty. The server will overwrite it with the name of the default.
update = { ...update, name: 'Segment' } as ModelVariantType;
this.#updateVariantData(variantId, update);
}
return;