From 67700f64ab0a9bcca3adfab5e0409f1d1f94a7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Wed, 5 Feb 2025 12:29:03 +0100 Subject: [PATCH] fix : error when creating the wiki in a space - MEED-8343 Before this fix, when accessing to the note app of a space the first time, 2 request getNotePage are launched in parallel. As the wiki not exists, 2 requests to create it are launched It make the note app not accessible This commit move the publish extension load after afte initialization Resolves Meeds-io/meeds#2880 --- .../src/main/webapp/vue-app/notes/components/NotesOverview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes-webapp/src/main/webapp/vue-app/notes/components/NotesOverview.vue b/notes-webapp/src/main/webapp/vue-app/notes/components/NotesOverview.vue index e458ea0587..9e0df4f9b0 100644 --- a/notes-webapp/src/main/webapp/vue-app/notes/components/NotesOverview.vue +++ b/notes-webapp/src/main/webapp/vue-app/notes/components/NotesOverview.vue @@ -433,6 +433,7 @@ export default { }, initialized() { if (this.initialized) { + Vue.prototype.$utils.includeExtensions('NotesExtension'); const urlHash = window.location.hash; if (urlHash) { const elementId = urlHash.substring(1); @@ -679,7 +680,6 @@ export default { }, mounted() { this.handleChangePages(); - Vue.prototype.$utils.includeExtensions('NotesExtension'); $(document).on('click', () => { this.translationsMenu = false; });