Skip to content

Commit

Permalink
Use === in initValues
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jan 9, 2025
1 parent c1146d4 commit 39c32c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdmo/projects/assets/js/interview/utils/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const initValues = (sets, values, element, setPrefix) => {
// check if there is any value for this question and set
if (isNil(values.find((value) => (
(value.attribute === question.attribute) &&
(value.set_prefix == set.set_prefix) &&
(value.set_index == set.set_index)
(value.set_prefix === set.set_prefix) &&
(value.set_index === set.set_index)
)))) {
// if there is no value, create one, but not for checkboxes
if (question.widget_class !== 'checkbox') {
Expand Down

0 comments on commit 39c32c3

Please sign in to comment.