Fix handling of boolean subflow module properties

Fixes #3000
This commit is contained in:
Nick O'Leary 2021-06-02 14:48:54 +01:00
parent a92f8f36c1
commit c0e4cf2358
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ function createNode(flow,config) {
switch(typeof config[nodeProp.name]) {
case "string": nodePropType = "str"; break;
case "number": nodePropType = "num"; break;
case "boolean": nodePropType = "bool"; nodePropValue = nodeProp?"true":"false"; break;
case "boolean": nodePropType = "bool"; nodePropValue == nodeProp?"true":"false"; break;
default:
nodePropType = config[nodeProp.name].type;
nodePropValue = config[nodeProp.name].value;