fix: Make getReviewQueue a Promise

This commit is contained in:
Alexander Polynomdivision
2018-09-19 18:06:59 +02:00
parent 8a6ec0dbc7
commit fbb27b8947
2 changed files with 32 additions and 25 deletions

View File

@@ -86,6 +86,7 @@ const ReviewPageWithRouter = withRouter(
[ReviewType.LEVEL]: () => vocabByLevelW(levelId),
[ReviewType.QUEUE]: () => vocabByQueueW(),
}[reviewType];
getVocab().then((res: IVocab[]) => {
this.vocab = res;
vocToQueue();