@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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -211,7 +211,7 @@ const _linearizePathExpression = root => {
|
|
|
211
211
|
|
|
212
212
|
// Traverse the tree and collect path components
|
|
213
213
|
while (node.name === 'PathExpression') {
|
|
214
|
-
parts.push(node.children[1]);
|
|
214
|
+
parts.push(node.children[node.children.length - 1]);
|
|
215
215
|
node = node.children[0];
|
|
216
216
|
}
|
|
217
217
|
|
|
@@ -243,7 +243,7 @@ const _buildSimpleFeelStructureTree = (parseTree, feelString) => {
|
|
|
243
243
|
if (node.type.name === 'VariableName') {
|
|
244
244
|
nodeRepresentation.variableName = feelString.slice(node.from, node.to);
|
|
245
245
|
}
|
|
246
|
-
if (node.type.name
|
|
246
|
+
if (['Name', 'PathName'].includes(node.type.name)) {
|
|
247
247
|
nodeRepresentation.variableName = feelString.slice(node.from, node.to);
|
|
248
248
|
}
|
|
249
249
|
stack.push(nodeRepresentation);
|