microl44 / Julet

Website visualizing data from my watched movies, brought forward by the jul.
3 stars 1 forks source link

Fix race condition causing error in table generation #118

Closed microl44 closed 1 month ago

microl44 commented 2 months ago

See issue #115 for details.

Currently the table sometimes thrown an error when trying to access a non-existing property.

This is caused by a race condition on page load, as sometimes the FetchParticipants function is fetched after the other functions. As the table is generated using the properties of the results, null value is read sometimes.

Suggestion to fix this would be to somehow stall the creation of tables until FetchParticipants has returned.

microl44 commented 1 month ago

Closed as of pull request #124