fix: prevent creation of duplicate collection
This commit is contained in:
parent
e16019dcbf
commit
bb973ee449
1 changed files with 1 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ export const mutations = {
|
||||||
const duplicateCollection = collections.some(item => item.name === name)
|
const duplicateCollection = collections.some(item => item.name === name)
|
||||||
if (duplicateCollection) {
|
if (duplicateCollection) {
|
||||||
this.$toast.info('Duplicate collection');
|
this.$toast.info('Duplicate collection');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
collections.push({
|
collections.push({
|
||||||
name: "",
|
name: "",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue