sdc-ide icon indicating copy to clipboard operation
sdc-ide copied to clipboard

Fix `exists` operator for boolean question types

Open vesnushka opened this issue 2 years ago • 2 comments

Exists operator is not applied for boolean question types

item:
  - text: Question 1
    type: boolean
    linkId: question1
  - text: Question 2
    linkId: question2
    enableWhen:
      - answer:
          boolean: false
        operator: exists
        question: question1

vesnushka avatar Aug 29 '23 11:08 vesnushka

Unfortunately, this problem exists not only for the boolean type of question. It also has problems with integers and decimals. It's because _.isEmpty is not the correct function to work with it.

Checks if value is an empty object, collection, map, or set.

projkov avatar Nov 10 '23 15:11 projkov

The actual information about the issue is stored here: https://github.com/beda-software/sdc-ide/pull/63

projkov avatar Nov 21 '23 09:11 projkov