Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri authored Sep 4, 2024
1 parent 0c417ea commit f2b9c6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,10 @@ const XmlaStore = Class.inherit((function () {

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

if (dataField && pathValue.indexOf(`${dataField}.`) === 0) {
pathValue = pathValue.slice(dataField.length + 1, pathValue.length);
Expand Down

0 comments on commit f2b9c6a

Please sign in to comment.