fix: prevent creation of duplicate collection

This commit is contained in:
jamesgeorge007
2020-01-21 19:46:33 +05:30
parent e16019dcbf
commit bb973ee449

View File

@@ -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: "",