Skip to content

Commit

Permalink
[fix] is-relevant-if with a code-value
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Dec 13, 2016
1 parent 9ba16c8 commit b844555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/FormUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ export default class FormUtils {
}
var qValue = FormUtils.resolveValueObject(answers[0]);

if (qValue && expValue && qValue.hasOwnProperty('@value') && expValue.hasOwnProperty('@id') && (qValue['@value'] == expValue['@id'])) {
// TODO remove !, this is temporary fix as type-ahead component returns data-value instead of code-value
return true;
}

if (JsonLdObjectUtils.compareValues(qValue, expValue)) {
return true;
}
Expand Down

0 comments on commit b844555

Please sign in to comment.