chg: [workflow:editor] Added support of list of value for display_on parameter

pull/9193/head
Sami Mokaddem 2023-07-12 11:13:50 -04:00
parent 3b33ba8adb
commit 774040bdf0
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 1 deletions

View File

@ -1390,7 +1390,9 @@ function toggleDisplayOnFields() {
Object.keys(node_param_config.display_on).forEach(function(target_param_id) {
var target_param_values = node_param_config.display_on[target_param_id]
var node_param_value = node.data.indexed_params[target_param_id]
if (target_param_values == node_param_value) {
if (Array.isArray(target_param_values) && target_param_values.includes(node_param_value)) {
showContainer = true
} else if (target_param_values == node_param_value) {
showContainer = true
}
});