Skip to content

Commit

Permalink
Remove check for non-mandatory params for choice sets (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShobhitAd authored Apr 1, 2020
1 parent 74d2492 commit e8baa2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ffw/RPCObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ FFW.RPCObserver = Em.Object.extend(
if ('choiceSet' in params) {
for (var i = params.choiceSet.length - 1; i >= 0; i--) {
if (this.checkImage(params.choiceSet[i])) {
if (!('menuName' in params.choiceSet[i]) ||
!('secondaryText' in params.choiceSet[i]) ||
!('tertiaryText' in params.choiceSet[i])) {
if (!('menuName' in params.choiceSet[i])) {
params.choiceSet.splice(i, 1);
}
}
Expand Down

0 comments on commit e8baa2d

Please sign in to comment.