diff --git a/store/postwoman.js b/store/postwoman.js index bf5881268..61712fb65 100644 --- a/store/postwoman.js +++ b/store/postwoman.js @@ -111,6 +111,12 @@ export const mutations = { }, addNewCollection({ collections }, collection) { + const { name } = collection + const duplicateCollection = collections.some(item => item.name === name) + if (duplicateCollection) { + this.$toast.info('Duplicate collection'); + return; + } collections.push({ name: "", folders: [],