Merge pull request #924 from umbraco/bugfix-add-missing-await-when-creating-extension-api
This commit is contained in:
@@ -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?.();
|
||||
|
||||
Reference in New Issue
Block a user