Fix camelCased attributes didn't work for more than 1 underscore

Also fixes vfsSelect destroyed session
This commit is contained in:
nathan
2022-07-25 16:12:09 -06:00
parent bdc74303bb
commit aace76b97a
2 changed files with 4 additions and 4 deletions

View File

@ -1375,7 +1375,7 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes)
{
let parts = attribute.split('_');
if (attribute === 'parent_node') parts[1] = 'Id';
attribute = parts.shift()+parts.map(part => part[0].toUpperCase()+part.substring(1));
attribute = parts.shift() + parts.map(part => part[0].toUpperCase() + part.substring(1)).join("");
}
const property = widget_class.getPropertyOptions(attribute);