Fixed issue with old_value check in File (#3859)

* old_value check

* changelog

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
Greysuki 2023-04-18 02:29:47 +08:00 committed by GitHub
parent d8bfa63a38
commit df7d645207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ No changes to highlight.
## Bug Fixes:
No changes to highlight.
- Fixed issue with old_value check in File. by [@tomchang25](https://github.com/tomchang25) in [PR 3859](https://github.com/gradio-app/gradio/pull/3859).
## Documentation Changes:

View File

@ -41,7 +41,7 @@
}>();
$: {
if (_value !== old_value) {
if (JSON.stringify(_value) !== JSON.stringify(old_value)) {
old_value = _value;
if (_value === null) {
dispatch("change");