From bb973ee449cf2f44bb95e558b2e2e69a23d042f2 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Tue, 21 Jan 2020 19:46:33 +0530 Subject: [PATCH] fix: prevent creation of duplicate collection --- store/postwoman.js | 1 + 1 file changed, 1 insertion(+) diff --git a/store/postwoman.js b/store/postwoman.js index d07d70957..61712fb65 100644 --- a/store/postwoman.js +++ b/store/postwoman.js @@ -115,6 +115,7 @@ export const mutations = { const duplicateCollection = collections.some(item => item.name === name) if (duplicateCollection) { this.$toast.info('Duplicate collection'); + return; } collections.push({ name: "",