Skip to content

Commit

Permalink
CustomStore: fix userData code snippet (#6902)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaskorohodova authored Dec 19, 2024
1 parent 984ba0b commit 5dd70b6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ An object for storing additional settings that should be sent to the server.
load: function (loadOptions) {
let value = loadOptions.userData?.someValue;
if(!value) {
value = 5;
loadOptions.userData?.someValue = 5;
alert("Initial value is set");
}
else {
Expand Down Expand Up @@ -48,7 +48,7 @@ An object for storing additional settings that should be sent to the server.
load: (loadOptions) => {
let value = loadOptions.userData?.someValue;
if(!value) {
value = 5;
loadOptions.userData?.someValue = 5;
alert("Initial value is set");
}
else {
Expand All @@ -75,7 +75,7 @@ An object for storing additional settings that should be sent to the server.
load: (loadOptions) => {
let value = loadOptions.userData?.someValue;
if(!value) {
value = 5;
loadOptions.userData?.someValue = 5;
alert("Initial value is set");
}
else {
Expand Down Expand Up @@ -107,7 +107,7 @@ An object for storing additional settings that should be sent to the server.
load: (loadOptions) => {
let value = loadOptions.userData?.someValue;
if(!value) {
value = 5;
loadOptions.userData?.someValue = 5;
alert("Initial value is set");
}
else {
Expand Down

0 comments on commit 5dd70b6

Please sign in to comment.