This is an automated email from the git hooks/post-receive script. New commit to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git commit 7c804776b238df3e1c44340b36e8cf55b9c42667 Author: kaufmann <kaufmann@codelutin.com> Date: Mon Aug 10 11:41:13 2020 +0200 Modification pour pouvoir retirer un tag de la recherche en cliquant dessus, correction du code --- web/src/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/main.js b/web/src/main.js index 5e30e1a..9934031 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -119,10 +119,11 @@ Vue.mixin({ let query = { ...this.currentQuery } query.tags = query.tags ? [...query.tags] : [] tags.forEach((t) => { - if (query.tags.indexOf(t) === -1) { + let index = query.tags.indexOf(t) + if (index === -1) { query.tags.push(t) } else { - query.tags.splice(t, 1) + query.tags.splice(index, 1) } }) this.go(query) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.