Skip to content
Snippets Groups Projects
Commit e1d163c6 authored by john's avatar john
Browse files

use patch for updates of workflow states

parent 94dee121
No related branches found
No related tags found
No related merge requests found
......@@ -48,8 +48,13 @@ export class ProgressItem extends React.Component {
position += 1 // move up a level
if (position >= len) position = 0 // or cycle back to the beginning
chapter.progress[type] = position
update(chapter)
const patch = {
id: chapter.id,
progress: chapter.progress
}
patch.progress[type] = position
update(patch)
this.setState({ showModal: false })
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment