Skip to content

Commit 5dd70b6

Browse files
CustomStore: fix userData code snippet (DevExpress#6902)
1 parent 984ba0b commit 5dd70b6

File tree

1 file changed

+4
-4
lines changed
  • api-reference/30 Data Layer/CustomStore/LoadOptions

1 file changed

+4
-4
lines changed

api-reference/30 Data Layer/CustomStore/LoadOptions/userData.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ An object for storing additional settings that should be sent to the server.
1818
load: function (loadOptions) {
1919
let value = loadOptions.userData?.someValue;
2020
if(!value) {
21-
value = 5;
21+
loadOptions.userData?.someValue = 5;
2222
alert("Initial value is set");
2323
}
2424
else {
@@ -48,7 +48,7 @@ An object for storing additional settings that should be sent to the server.
4848
load: (loadOptions) => {
4949
let value = loadOptions.userData?.someValue;
5050
if(!value) {
51-
value = 5;
51+
loadOptions.userData?.someValue = 5;
5252
alert("Initial value is set");
5353
}
5454
else {
@@ -75,7 +75,7 @@ An object for storing additional settings that should be sent to the server.
7575
load: (loadOptions) => {
7676
let value = loadOptions.userData?.someValue;
7777
if(!value) {
78-
value = 5;
78+
loadOptions.userData?.someValue = 5;
7979
alert("Initial value is set");
8080
}
8181
else {
@@ -107,7 +107,7 @@ An object for storing additional settings that should be sent to the server.
107107
load: (loadOptions) => {
108108
let value = loadOptions.userData?.someValue;
109109
if(!value) {
110-
value = 5;
110+
loadOptions.userData?.someValue = 5;
111111
alert("Initial value is set");
112112
}
113113
else {

0 commit comments

Comments
 (0)