fix: return for duplicate collection
This commit is contained in:
parent
2853a4bbef
commit
a34acfd0c5
1 changed files with 1 additions and 0 deletions
|
|
@ -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: "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue