From 4e6d1f253afa02221022b46acae1c7bf6a7287fd Mon Sep 17 00:00:00 2001 From: Nicolas Molina Date: Tue, 26 Nov 2024 12:03:49 -0400 Subject: [PATCH] chore(edit-content): fix error with load content #30060 --- .../dot-select-existing-file.component.ts | 1 + .../dot-select-existing-file/store/select-existing-file.store.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/dot-select-existing-file.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/dot-select-existing-file.component.ts index b4aae4e0d133..445f2eb301c4 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/dot-select-existing-file.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/dot-select-existing-file.component.ts @@ -76,6 +76,7 @@ export class DotSelectExistingFileComponent implements OnInit { const data = this.#dialogConfig?.data as DialogData; const inputType = data?.inputType === INPUT_TYPES.Image ? ['image'] : []; this.store.setMimeTypes(inputType); + this.store.loadContent(); } /** diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/store/select-existing-file.store.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/store/select-existing-file.store.ts index 170d66e17dba..7d200a0deb48 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/store/select-existing-file.store.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/components/dot-select-existing-file/store/select-existing-file.store.ts @@ -207,7 +207,6 @@ export const SelectExisingFileStore = signalStore( withHooks((store) => ({ onInit: () => { store.loadFolders(); - store.loadContent(); } })) );