mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
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:
parent
d8bfa63a38
commit
df7d645207
@ -7,7 +7,7 @@ No changes to highlight.
|
|||||||
|
|
||||||
## Bug Fixes:
|
## 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:
|
## Documentation Changes:
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
}>();
|
}>();
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (_value !== old_value) {
|
if (JSON.stringify(_value) !== JSON.stringify(old_value)) {
|
||||||
old_value = _value;
|
old_value = _value;
|
||||||
if (_value === null) {
|
if (_value === null) {
|
||||||
dispatch("change");
|
dispatch("change");
|
||||||
|
Loading…
Reference in New Issue
Block a user