Merge pull request #924 from umbraco/bugfix-add-missing-await-when-creating-extension-api

This commit is contained in:
Niels Lyngsø
2023-10-10 15:30:09 +02:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ export class UmbEntityActionElement extends UmbLitElement {
if (!this._manifest) return;
if (this._unique === undefined) return;
this.#api = createExtensionApi(this._manifest, [this, this._manifest.meta.repositoryAlias, this.unique]);
this.#api = await createExtensionApi(this._manifest, [this, this._manifest.meta.repositoryAlias, this.unique]);
// TODO: Fix so when we use a HREF it does not refresh the page?
this._href = await this.#api.getHref?.();