Skip to content

Commit 4059c3e

Browse files
author
BryanSchroeder
committed
Allowing state to have a fallback of []
1 parent e5d7249 commit 4059c3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function handleServerside(
457457
for (let i = 0; i < tmp_body.inputs.length; i++) {
458458
tmp_body.inputs[i]['value'] = null;
459459
}
460-
for (let i = 0; i < tmp_body?.state.length; i++) {
460+
for (let i = 0; i < (tmp_body?.state || []).length; i++) {
461461
tmp_body.state[i]['value'] = null;
462462
}
463463
new_body = JSON.stringify(tmp_body)

0 commit comments

Comments
 (0)