fix: return for duplicate collection
This commit is contained in:
@@ -114,6 +114,7 @@ export const mutations = {
|
|||||||
const duplicateCollection = collections.some(item => item.name === collection.name)
|
const duplicateCollection = collections.some(item => item.name === collection.name)
|
||||||
if (duplicateCollection) {
|
if (duplicateCollection) {
|
||||||
alert('Duplicate collection');
|
alert('Duplicate collection');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
collections.push({
|
collections.push({
|
||||||
name: "",
|
name: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user