diff --git a/CHANGELOG.md b/CHANGELOG.md index 9109335321..f4480bc75d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ ### Fixes +* Registering duplicate icon is no longer breaking the build. +* Fix widget focus state so that the in-context Add Content menu stays visible during animation +* Fix UI of areas in schemas so that their context menus are layered overtop sibling schema fields UI +* Fix unhandled promise rejections and guard against potential memory leaks, remove 3rd party `debounce-async` dependency * Adds an option to center the context menu arrow on the button icon. Sets this new option on some context menus in the admin UI. ## 4.6.1 (2024-08-26) diff --git a/modules/@apostrophecms/admin-bar/ui/apos/components/TheAposContextBar.vue b/modules/@apostrophecms/admin-bar/ui/apos/components/TheAposContextBar.vue index 74ddcf42ba..917e125767 100644 --- a/modules/@apostrophecms/admin-bar/ui/apos/components/TheAposContextBar.vue +++ b/modules/@apostrophecms/admin-bar/ui/apos/components/TheAposContextBar.vue @@ -720,14 +720,18 @@ export default { async updateDraftIsEditable() { if (this.context.aposLocale && this.context.aposLocale.endsWith('published') && !this.context._edit) { // A contributor might be able to edit the draft - const draftContext = await apos.http.get(`${this.action}/${this.context._id}`, { - busy: true, - qs: { - aposMode: 'draft', - aposLocale: this.context.aposLocale.split(':')[0] - } - }); - this.draftIsEditable = draftContext && draftContext._edit; + try { + const draftContext = await apos.http.get(`${this.action}/${this.context._id}`, { + busy: true, + qs: { + aposMode: 'draft', + aposLocale: this.context.aposLocale.split(':')[0] + } + }); + this.draftIsEditable = draftContext && draftContext._edit; + } catch (e) { + console.error(e); + } } }, async getPublished() { @@ -735,13 +739,17 @@ export default { const manuallyPublished = moduleOptions.localized && !this.autopublish; if (manuallyPublished && this.context.lastPublishedAt) { const action = window.apos.modules[this.context.type].action; - const doc = await apos.http.get(`${action}/${this.context._id}`, { - busy: true, - qs: { - aposMode: 'published' - } - }); - return doc; + try { + const doc = await apos.http.get(`${action}/${this.context._id}`, { + busy: true, + qs: { + aposMode: 'published' + } + }); + return doc; + } catch (error) { + console.error(error); + } } return null; }, diff --git a/modules/@apostrophecms/image/ui/apos/components/AposImageCropper.vue b/modules/@apostrophecms/image/ui/apos/components/AposImageCropper.vue index b15d19f342..73f5db845a 100644 --- a/modules/@apostrophecms/image/ui/apos/components/AposImageCropper.vue +++ b/modules/@apostrophecms/image/ui/apos/components/AposImageCropper.vue @@ -30,7 +30,7 @@