From df7d64520721a2ce6174b37869ed900747b4cfe3 Mon Sep 17 00:00:00 2001 From: Greysuki <31534748+tomchang25@users.noreply.github.com> Date: Tue, 18 Apr 2023 02:29:47 +0800 Subject: [PATCH] Fixed issue with old_value check in File (#3859) * old_value check * changelog * fix --------- Co-authored-by: Abubakar Abid --- CHANGELOG.md | 2 +- js/app/src/components/File/File.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2cbec031b..c3bc43429c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/js/app/src/components/File/File.svelte b/js/app/src/components/File/File.svelte index 583474f21b..d39de564cc 100644 --- a/js/app/src/components/File/File.svelte +++ b/js/app/src/components/File/File.svelte @@ -41,7 +41,7 @@ }>(); $: { - if (_value !== old_value) { + if (JSON.stringify(_value) !== JSON.stringify(old_value)) { old_value = _value; if (_value === null) { dispatch("change");