Skip to content

fix same candidates appearing multiple times in table - #43

Open
DongsubShim wants to merge 1 commit into
dappuniversity:masterfrom
DongsubShim:fix_same_candidates_appearing_multiple_times_in_table
Open

fix same candidates appearing multiple times in table#43
DongsubShim wants to merge 1 commit into
dappuniversity:masterfrom
DongsubShim:fix_same_candidates_appearing_multiple_times_in_table

Conversation

@DongsubShim

Copy link
Copy Markdown

Key changes:

Use Promise.all so all candidates are available for synchronous table update for each render() call.
Now, for two candidates, the table update would be like: (cand1 from 1st render call + cand2 from 1st) update done for 1st render … 2nd render …

Previously, multiple render() calls mixed up promises, so the table sometimes returned strange result: (cand1 from 1st + cand1 from 2nd + cand2 from 1st + cand2 from 2nd) update done for 1st and 2nd render() calls at the same time but the table showed each candidate twice.

@Meharab Meharab mentioned this pull request Jan 30, 2021
@marcopestrin

Copy link
Copy Markdown

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants