Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
delete all parameters of description property upon modification
Signed-off-by: Maximilian Martin <[email protected]>
  • Loading branch information
max65482 committed Jan 31, 2022
commit dde52e17f6ae6fed5de958b04e648af7813ef398
5 changes: 3 additions & 2 deletions src/models/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,9 @@ export default class Task {
}

set note(note) {
this.vtodo.updatePropertyWithValue('description', note)
this.vtodo.getFirstProperty('description').removeParameter('altrep')
// To avoid inconsistent parameters, delete complete property, then recreate
this.vtodo.removeProperty('description')
this.vtodo.addPropertyWithValue('description', note)
this.updateLastModified()
this._note = this.vtodo.getFirstPropertyValue('description') || ''
}
Expand Down