Skip to content

Commit fcee1db

Browse files
committed
remove extre unsafe checking
1 parent 9239cd3 commit fcee1db

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

  • packages/devextreme/js/__internal/core/utils

packages/devextreme/js/__internal/core/utils/m_data.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,13 @@ function combineGetters(getters) {
139139

140140
for (let i = 0; i < last; i++) {
141141
const pathItem = path[i];
142-
if (isUnsafePathFragment(pathItem)) {
143-
errors.log('E0123', pathItem);
144-
return;
145-
}
146142
if (!(pathItem in current)) {
147143
current[pathItem] = { };
148144
}
149145
current = current[pathItem];
150146
}
151147

152-
const lastPathItem = path[last];
153-
if (isUnsafePathFragment(lastPathItem)) {
154-
errors.log('E0123', lastPathItem);
155-
return;
156-
}
157-
158-
current[lastPathItem] = value;
148+
current[path[last]] = value;
159149
});
160150
return result;
161151
};

0 commit comments

Comments
 (0)