From 9bd0400e57c9d3b35fb59140ad7484694bea6a6c Mon Sep 17 00:00:00 2001 From: Louis Eveillard Date: Wed, 18 Dec 2024 23:22:30 +0100 Subject: [PATCH] =?UTF-8?q?FIX=20/=20filter=20author=20paths=20when=20acco?= =?UTF-8?q?unt=20doesn=E2=80=99t=20exist=20anymore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/adc-core/fields/AuthorField.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/adc-core/fields/AuthorField.vue b/client/src/adc-core/fields/AuthorField.vue index 45f575d8c..93d7df1c5 100644 --- a/client/src/adc-core/fields/AuthorField.vue +++ b/client/src/adc-core/fields/AuthorField.vue @@ -199,7 +199,11 @@ export default { ) { this.new_authors_paths = "noone"; } else if (Array.isArray(this.authors_paths)) { - this.new_authors_paths = JSON.parse(JSON.stringify(this.authors_paths)); + this.new_authors_paths = this.new_authors_paths.reduce((acc, a) => { + const author = this.getAuthor(a); + if (author) acc.push(author.$path); + return acc; + }, []); } }, enableEditMode() {