use helper to check of variant is invariant
This commit is contained in:
@@ -112,7 +112,7 @@ export class UmbPropertyContext<ValueType = any> extends UmbContextBase<UmbPrope
|
||||
|
||||
this.observe(this.#datasetContext.currentVariantCultureIsReadOnly, (value) => {
|
||||
// always allow invariant properties to be editable
|
||||
const isInvariant = !this.#variantId?.getValue()?.culture;
|
||||
const isInvariant = this.#variantId?.getValue()?.isInvariant();
|
||||
|
||||
// always allow editing invariant properties
|
||||
if (isInvariant) {
|
||||
|
||||
Reference in New Issue
Block a user