fix: remove duplicate store assignment
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
66e60a4e6a
commit
f712e66335
|
@ -128,7 +128,6 @@ async function createAndAddLabel(title: string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const labelStore = useLabelStore()
|
|
||||||
const newLabel = await labelStore.createLabel(new LabelModel({title}))
|
const newLabel = await labelStore.createLabel(new LabelModel({title}))
|
||||||
addLabel(newLabel, false)
|
addLabel(newLabel, false)
|
||||||
labels.value.push(newLabel)
|
labels.value.push(newLabel)
|
||||||
|
|
|
@ -65,7 +65,6 @@ async function newLabel() {
|
||||||
}
|
}
|
||||||
showError.value = false
|
showError.value = false
|
||||||
|
|
||||||
const labelStore = useLabelStore()
|
|
||||||
const newLabel = await labelStore.createLabel(label.value)
|
const newLabel = await labelStore.createLabel(label.value)
|
||||||
router.push({
|
router.push({
|
||||||
name: 'labels.index',
|
name: 'labels.index',
|
||||||
|
|
Reference in New Issue
Block a user