fix: Make getReviewQueue a Promise
This commit is contained in:
@@ -86,6 +86,7 @@ const ReviewPageWithRouter = withRouter(
|
||||
[ReviewType.LEVEL]: () => vocabByLevelW(levelId),
|
||||
[ReviewType.QUEUE]: () => vocabByQueueW(),
|
||||
}[reviewType];
|
||||
|
||||
getVocab().then((res: IVocab[]) => {
|
||||
this.vocab = res;
|
||||
vocToQueue();
|
||||
|
||||
Reference in New Issue
Block a user