Skip to content

Commit

Permalink
avniproject#1219| DEA fails if no options provided for Duration
Browse files Browse the repository at this point in the history
  • Loading branch information
shraddha761 committed Jun 4, 2024
1 parent bbd85cf commit 4cdcbfc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/formDesigner/common/FormDesignerHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ export const formDesignerHandleGroupElementKeyValueChange = (
propertyName,
value
) => {
if (propertyName === "durationOptions") {
if (value === "") {
draftFormElement.keyValues.durationOptions = [];
draftFormElement.keyValues.durationOptionsError = true;
} else {
draftFormElement.keyValues.durationOptions = value;
draftFormElement.keyValues.durationOptionsError = false;
}
}
if (
includes(
["IdSourceUUID", "unique", "groupSubjectTypeUUID", "groupSubjectRoleUUID"],
Expand Down

0 comments on commit 4cdcbfc

Please sign in to comment.