fix(task): do not parse task comment reactions so that they actually
appear Resolves https://github.com/go-vikunja/vikunja/issues/1343
This commit is contained in:
parent
14e1bd2f55
commit
3baf6cd477
|
|
@ -151,8 +151,10 @@ export default class TaskModel extends AbstractModel<ITask> implements ITask {
|
|||
this.updated = new Date(this.updated)
|
||||
|
||||
this.projectId = Number(this.projectId)
|
||||
|
||||
this.comments = this.comments.map(c => new TaskCommentModel(c))
|
||||
|
||||
// If we would use the camel cased value here, it would lose the reactions - emojis can't be camel cased.
|
||||
// The comments will be camel cased anyway in the constructor of the task comment model.
|
||||
this.comments = (data.comments || []).map(c => new TaskCommentModel(c))
|
||||
|
||||
// We can't convert emojis to camel case, hence we do this manually
|
||||
this.reactions = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue