Skip to content

Commit

Permalink
[#80] Fix rule payload on form detail
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Apr 12, 2022
1 parent 697b41b commit bae9df9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/survey-editor/Preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ const Preview = () => {
};
}
// rule
if (q.rule && !q.rule?.allow_other) {
if (
q.rule &&
!q.rule?.allow_other &&
q.rule.allow_other !== false
) {
qVal = {
...qVal,
rule: q.rule,
Expand Down

0 comments on commit bae9df9

Please sign in to comment.