add missing orig_name (follow up to #8334) (#8341)

* add missing orig_name (follow up to #8334)

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
gtmnayan 2024-05-22 01:36:54 +05:45 committed by GitHub
parent 4dc7fa7cd7
commit 82ba397592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/file": minor
"gradio": minor
---
feat:add missing orig_name (follow up to #8334)

View File

@ -41,7 +41,7 @@
event.composedPath().includes(tr.firstElementChild); // Or if the click is on the name column
if (should_select) {
dispatch("select", { value: normalized_files[index], index });
dispatch("select", { value: normalized_files[index].orig_name, index });
}
}