Skip to content

Commit

Permalink
fix: response action date field bug
Browse files Browse the repository at this point in the history
  • Loading branch information
deeonwuli committed Oct 14, 2024
1 parent 6973c6e commit 7ab55a3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export function mapIncidentResponseActionToInitialFormState(
titleDescripton: "Step 2:",
subtitleDescripton: "Assign response actions",
saveButtonLabel: "Save plan",
isValid: incidentResponseActions ? true : false,
isValid: incidentResponseActions.length !== 0 ? true : false,
sections: [...responseActionSections, addNewOptionSection],
};
}
Expand Down Expand Up @@ -325,7 +325,9 @@ function getResponseActionSection(options: {
label: "Due date",
isVisible: true,
errors: [],
value: incidentResponseAction?.dueDate || new Date(),
value: incidentResponseAction?.dueDate
? new Date(incidentResponseAction?.dueDate)
: new Date(),
type: "date",
width: "200px",
required: true,
Expand Down

0 comments on commit 7ab55a3

Please sign in to comment.