only execute if we have proper values

This commit is contained in:
Mads Rasmussen
2025-03-27 13:37:16 +01:00
parent 5557ec4cd8
commit e8ba63bad4

View File

@@ -193,6 +193,10 @@ export abstract class UmbContentDetailWorkspaceContextBase<
this.variantOptions = mergeObservables(
[this.varies, this.variesByCulture, this.variesBySegment, this.variants, this.languages, this._segments],
([varies, variesByCulture, variesBySegment, variants, languages, segments]) => {
if (varies === undefined) return;
if (variesByCulture === undefined) return;
if (variesBySegment === undefined) return;
// No variation
if (!varies) {
return [