fix: remove duplicate store assignment (#2644)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: vikunja/frontend#2644
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni 2022-11-07 11:43:19 +00:00 committed by konrad
parent 6a93701649
commit 38cef79f68
2 changed files with 0 additions and 2 deletions

View File

@ -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)

View File

@ -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',