Skip to content

Commit

Permalink
fix issue when using edit flow in the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
engPabloMartinez committed Dec 1, 2023
1 parent 6cf3443 commit 9971927
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,23 @@ export default class OdConfigurationEditor extends LightningElement {
}

// check flow names if flow add
if (this.inputValues.addType.value === INLINE_FLOW.FLOW && !this.inputValues.addFlowName.value) {
if (
this.inputValues.canAdd.value === YES_NO.YES &&
this.inputValues.addType.value === INLINE_FLOW.FLOW &&
!this.inputValues.addFlowName.value
) {
validity.push({
key: 'addFlowName',
errorString: 'You must select a Flow if Add Type is Flow',
});
}

// check flow names if flow edit
if (this.inputValues.editType.value === INLINE_FLOW.FLOW && !this.inputValues.editFlowName.value) {
if (
this.inputValues.canEdit.value === YES_NO.YES &&
this.inputValues.editType.value === INLINE_FLOW.FLOW &&
!this.inputValues.editFlowName.value
) {
validity.push({
key: 'editFlowName',
errorString: 'You must select a Flow if Edit Type is Flow',
Expand Down

0 comments on commit 9971927

Please sign in to comment.