fix: return for duplicate collection

This commit is contained in:
jamesgeorge007
2020-01-21 16:38:09 +05:30
parent 2853a4bbef
commit a34acfd0c5

View File

@@ -114,6 +114,7 @@ export const mutations = {
const duplicateCollection = collections.some(item => item.name === collection.name)
if (duplicateCollection) {
alert('Duplicate collection');
return;
}
collections.push({
name: "",