fix: triggers wizard allowing empty custom requirement field
fix: issue with custom requirement filtering when in presence of older triggers refactor: pull up methods fix: remove log
This commit is contained in:
parent
633e0656c1
commit
807c5bfc85
3 changed files with 67 additions and 25 deletions
|
|
@ -41,8 +41,8 @@ const createTerms = terms => (terms.active && terms.text) ? ({
|
|||
const buildTriggers = (allTriggers) => {
|
||||
const normalTriggers = []
|
||||
const customTriggers = _.filter(o => {
|
||||
if (o.customInfoRequestId === '') normalTriggers.push(o)
|
||||
return o.customInfoRequestId !== ''
|
||||
if (o.customInfoRequestId === '' || _.isNil(o.customInfoRequestId)) normalTriggers.push(o)
|
||||
return !_.isNil(o.customInfoRequestId)
|
||||
}, allTriggers)
|
||||
|
||||
return _.flow([_.map(_.get('customInfoRequestId')), customRequestQueries.batchGetCustomInfoRequest])(customTriggers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue