Don't flash progress indicators when it is a failed request.
This commit is contained in:
parent
d6bf2e0ce9
commit
bed51b5871
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ const progress: ProgressStore = {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
setComplete: action(state => {
|
setComplete: action(state => {
|
||||||
state.progress = 100;
|
if (state.progress) {
|
||||||
|
state.progress = 100;
|
||||||
|
}
|
||||||
|
|
||||||
state.continuous = false;
|
state.continuous = false;
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue