Skip to content

Commit

Permalink
fix: add stored manifests if available
Browse files Browse the repository at this point in the history
  • Loading branch information
iOvergaard committed Oct 2, 2024
1 parent ed3eccc commit 3a9dca4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export class UmbInputUploadFieldElement extends UmbLitElement {
}

async #getManifests() {
if (this.#manifests.length) return this.#manifests;

await new UmbExtensionsManifestInitializer(this, umbExtensionsRegistry, 'fileUploadPreview', null, (exts) => {
this.#manifests = exts.map((exts) => exts.manifest);
}).asPromise();
Expand Down

0 comments on commit 3a9dca4

Please sign in to comment.