Skip to content

Commit 9c25455

Browse files
author
BryanSchroeder
committed
fixing for lint
1 parent 4059c3e commit 9c25455

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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 new_body = 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-
let tmp_body = JSON.parse(new_body)
456+
const tmp_body = JSON.parse(new_body);
457457
for (let i = 0; i < tmp_body.inputs.length; i++) {
458458
tmp_body.inputs[i]['value'] = null;
459459
}
460460
for (let i = 0; i < (tmp_body?.state || []).length; i++) {
461461
tmp_body.state[i]['value'] = null;
462462
}
463-
new_body = JSON.stringify(tmp_body)
463+
new_body = JSON.stringify(tmp_body);
464464
}
465465

466466
if (moreArgs) {
@@ -473,7 +473,7 @@ function handleServerside(
473473
mergeDeepRight(config.fetch, {
474474
method: 'POST',
475475
headers,
476-
body: new_body,
476+
body: new_body
477477
})
478478
);
479479
};

0 commit comments

Comments
 (0)