From f93fc3aa848b6c4f0937a38eb83e1afc10d37ffc Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 5 Dec 2017 14:23:56 +0100 Subject: [PATCH] Fixed a bug where toggling between choosing and adding a new publisher would not work --- frontend/src/components/BooksAddEdit.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/components/BooksAddEdit.vue b/frontend/src/components/BooksAddEdit.vue index 05a69b6..1decd2a 100644 --- a/frontend/src/components/BooksAddEdit.vue +++ b/frontend/src/components/BooksAddEdit.vue @@ -48,7 +48,7 @@
- +
@@ -164,7 +164,6 @@ if (this.book.authors === null) { this.book.authors = [] } - console.log(this.book.authors) }) .catch(e => { this.errorNotification(e) @@ -248,15 +247,12 @@ // Add all newly created authors to it let as = this.newAuthors - console.log(this.book, this.newAuthors) - for (const i in as) { this.book.authors.push({ id: 0, name: as[i] }) } - console.log(this.book.authors, this.newAuthors) // Beautify all Authors aka split the names in forename and lastname for (const i in this.book.authors) {