We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57d1c81 + 0508add commit 395cdd9Copy full SHA for 395cdd9
1 file changed
app/assets/javascripts/activeadmin/dynamic_fields.js
@@ -91,7 +91,8 @@
91
}
92
93
evaluateCondition() {
94
- let value = CONDITIONS[this.el.data('if')?.trim()]
+ let data_if = this.el.data('if')
95
+ let value = data_if ? CONDITIONS[data_if.trim()] : null
96
if (value) return { condition: value }
97
98
value = this.el.data('eq')
0 commit comments