@bpmn-io/form-js-viewer 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -191,7 +191,7 @@ const _linearizePathExpression = root => {
191
191
 
192
192
  // Traverse the tree and collect path components
193
193
  while (node.name === 'PathExpression') {
194
- parts.push(node.children[1]);
194
+ parts.push(node.children[node.children.length - 1]);
195
195
  node = node.children[0];
196
196
  }
197
197
 
@@ -223,7 +223,7 @@ const _buildSimpleFeelStructureTree = (parseTree, feelString) => {
223
223
  if (node.type.name === 'VariableName') {
224
224
  nodeRepresentation.variableName = feelString.slice(node.from, node.to);
225
225
  }
226
- if (node.type.name === 'Name') {
226
+ if (['Name', 'PathName'].includes(node.type.name)) {
227
227
  nodeRepresentation.variableName = feelString.slice(node.from, node.to);
228
228
  }
229
229
  stack.push(nodeRepresentation);