fix: remove duplicate store assignment (#2644)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2644 Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
6a93701649
commit
38cef79f68
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user