0👍
✅
First off, you should have everything with async/await
without any .then
.
Don’t mix both of them. Use the first one.
Then, in your async populateModel
method, you should have a
this.model.position = await this.getFieldPosition()
since getFieldPosition
is async.
Source:stackexchange.com