fix: editing a label works now

This commit is contained in:
kolaente 2021-10-13 20:12:37 +02:00
parent e6a935f49d
commit 69821fb663
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -168,6 +168,9 @@ export default {
// object passed to this function here still has a reference to the store. // object passed to this function here still has a reference to the store.
this.labelEditLabel = new LabelModel({ this.labelEditLabel = new LabelModel({
...label, ...label,
// The model does not support passing dates into it directly so we need to convert them first
created: +label.created,
updated: +label.updated,
}) })
this.isLabelEdit = true this.isLabelEdit = true