Skip to content

Commit

Permalink
feat: Adding subtask now also carries over step
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkoelle committed May 13, 2021
1 parent 9b69184 commit 9bfc3da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/model/SchemaSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export function schemaAddSubtask(
} else {
// Carry over max points, value and comment to subtask
task.max = (parent as RateableTask).max;
task.step = (parent as RateableTask).step;
const oldRating = Object.values<RatingEntity>(
state.schema.ratings
).find((r) => r.task === parent.id);
Expand Down

0 comments on commit 9bfc3da

Please sign in to comment.