Fix clearInterval of tast-toast

This commit is contained in:
Stanislav Romanov 2022-09-15 17:08:19 +03:00
parent 0126016154
commit 7313f66064

View file

@ -99,7 +99,7 @@ export default class TaskToastComponent extends Component {
this.meilisearch.getTask(this.taskUid).then((task) => {
this.task = task;
if (!this.isEnqueued) {
if (this.isSucceeded || this.isFailed) {
this.clearInterval();
}