diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/content/property-dataset-context/content-property-dataset.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/content/property-dataset-context/content-property-dataset.context.ts index 13551548c1..f952768d75 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/content/property-dataset-context/content-property-dataset.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/content/property-dataset-context/content-property-dataset.context.ts @@ -93,7 +93,7 @@ export class UmbContentPropertyDatasetContext< /** * @function propertyVariantId - * @param {string} propertyAlias + * @param {string} propertyAlias - The property alias to observe the variantId of. * @returns {Promise | undefined>} * @description Get an Observable for the variant id of this property. */ @@ -105,8 +105,8 @@ export class UmbContentPropertyDatasetContext< /** * @function propertyValueByAlias - * @param {string} propertyAlias - * @returns {Promise | undefined>} + * @param {string} propertyAlias The alias of the property + * @returns {Promise | undefined>} - An observable of the property value * @description Get an Observable for the value of this property. */ async propertyValueByAlias( @@ -130,10 +130,10 @@ export class UmbContentPropertyDatasetContext< /** * @function setPropertyValueByVariant - * @param {string} propertyAlias + * @param {string} propertyAlias - The alias of the property * @param {unknown} value - value can be a promise resolving into the actual value or the raw value it self. * @param {UmbVariantId} propertyVariantId - The variant id for the value to be set for. - * @returns {Promise} + * @returns {Promise} - A promise that resolves once the value has been set. * @description Get the value of this property. */ setPropertyValueByVariant(propertyAlias: string, value: unknown, propertyVariantId: UmbVariantId): Promise { @@ -142,7 +142,7 @@ export class UmbContentPropertyDatasetContext< /** * @function setPropertyValue - * @param {string} propertyAlias + * @param {string} propertyAlias - The alias for the value to be set * @param {PromiseLike} value - value can be a promise resolving into the actual value or the raw value it self. * @returns {Promise} * @description Set the value of this property. @@ -155,7 +155,7 @@ export class UmbContentPropertyDatasetContext< const variantId = this.#createPropertyVariantId(property); // This is not reacting to if the property variant settings changes while running. - this.#workspace.setPropertyValue(propertyAlias, await value, variantId); + await this.#workspace.setPropertyValue(propertyAlias, await value, variantId); } this.#workspace.finishPropertyValueChange(); }