Skip to content

Commit e2c3bac

Browse files
author
BryanSchroeder
committed
swapping for camelCase
1 parent 9c25455 commit e2c3bac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ function handleServerside(
439439
const fetchCallback = () => {
440440
const headers = getCSRFHeader() as any;
441441
let url = `${urlBase(config)}_dash-update-component`;
442-
let new_body = body;
442+
let newBody = body;
443443

444444
const addArg = (name: string, value: string) => {
445445
let delim = '?';
@@ -453,14 +453,14 @@ function handleServerside(
453453
if (job) addArg('job', job);
454454

455455
// clear inputs as background callback doesnt need inputs, just verify for context
456-
const tmp_body = JSON.parse(new_body);
456+
const tmpBody = JSON.parse(new_body);
457457
for (let i = 0; i < tmp_body.inputs.length; i++) {
458-
tmp_body.inputs[i]['value'] = null;
458+
tmpBody.inputs[i]['value'] = null;
459459
}
460460
for (let i = 0; i < (tmp_body?.state || []).length; i++) {
461-
tmp_body.state[i]['value'] = null;
461+
tmpBody.state[i]['value'] = null;
462462
}
463-
new_body = JSON.stringify(tmp_body);
463+
newBody = JSON.stringify(tmpBody);
464464
}
465465

466466
if (moreArgs) {

0 commit comments

Comments
 (0)