fix: editing a label works now
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2021-10-13 20:12:37 +02:00
parent e6a935f49d
commit 69821fb663
Signed by: konrad
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