Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Aug 25, 2024
1 parent 980d042 commit fdddc00
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ const XmlaStore = Class.inherit((function () {

function preparePathValue(pathValue, dataField?) {
if (pathValue) {
const shouldWrapPathValue = isString(pathValue) && pathValue.includes('&');
const shouldWrapPathValue = isString(pathValue) && (
pathValue.includes('&') || pathValue.startsWith(`${dataField}.`)
);
pathValue = shouldWrapPathValue ? pathValue : `[${pathValue}]`;

if (dataField && pathValue.indexOf(`${dataField}.`) === 0) {
Expand Down

0 comments on commit fdddc00

Please sign in to comment.