Skip to content

Commit d61599d

Browse files
committed
#954: Added delete stage when a stage is changed from something to null
1 parent 5987f7f commit d61599d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/backend/src/utils/changes.utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ export const createChange = (
4646
wbsElementId,
4747
detail: `Added ${nameOfField} "${newValue}"`
4848
};
49+
} else if (oldValue !== null && newValue == null) {
50+
return {
51+
changeRequestId: crId,
52+
implementerId,
53+
wbsElementId,
54+
detail: `Deleted ${nameOfField} "${oldValue}"`
55+
};
4956
} else if (oldValue !== newValue) {
5057
return {
5158
changeRequestId: crId,

0 commit comments

Comments
 (0)