mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
Fix undefined data
TypeError in Blocks (#6536)
* add undefined check * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
f53b01cbfb
commit
1bbd6cab3f
6
.changeset/itchy-rocks-bow.md
Normal file
6
.changeset/itchy-rocks-bow.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/app": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fix undefined `data` TypeError in Blocks
|
@ -313,7 +313,7 @@
|
||||
): Promise<void> {
|
||||
const outputs = dependencies[fn_index].outputs;
|
||||
|
||||
data.forEach((value: any, i: number) => {
|
||||
data?.forEach((value: any, i: number) => {
|
||||
const output = instance_map[outputs[i]];
|
||||
output.props.value_is_output = true;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user