diff --git a/frontend/src/features/collections/collection-edit-dialog.ts b/frontend/src/features/collections/collection-edit-dialog.ts index 403f4c1190..b7b3915bd5 100644 --- a/frontend/src/features/collections/collection-edit-dialog.ts +++ b/frontend/src/features/collections/collection-edit-dialog.ts @@ -173,6 +173,7 @@ export class CollectionEdit extends BtrixElement { private onReset() { void this.hideDialog(); + void this.thumbnailSelector?.resetFormState(); this.dirty = false; this.errorTab = null; this.blobIsLoaded = false; diff --git a/frontend/src/features/collections/select-collection-page.ts b/frontend/src/features/collections/select-collection-page.ts index 9d04431865..e76c07ecac 100644 --- a/frontend/src/features/collections/select-collection-page.ts +++ b/frontend/src/features/collections/select-collection-page.ts @@ -108,6 +108,11 @@ export class SelectCollectionPage extends BtrixElement { } } + public async resetFormState() { + if (!this.collection) return; + await this.initSelection(this.collection); + } + updated(changedProperties: PropertyValues) { if (changedProperties.has("selectedSnapshot")) { this.dispatchEvent(