mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Do not show [object Object]
(#2636)
This commit is contained in:
parent
d3d67c2083
commit
c45f3cb0af
1 changed files with 5 additions and 1 deletions
|
@ -15,7 +15,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
let label: string = "";
|
||||
|
||||
function onUpdate(progress: Progress) {
|
||||
if (progress.value.value && label !== progress.value.value) {
|
||||
if (
|
||||
progress.value.value &&
|
||||
progress.value.case !== "none" &&
|
||||
label !== progress.value.value.toString()
|
||||
) {
|
||||
label = progress.value.value.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue