Skip to content

Fix: docByID undefined#4294

Closed
FirePheonix wants to merge 2 commits intosugarlabs:masterfrom
FirePheonix:docByIdUndefined
Closed

Fix: docByID undefined#4294
FirePheonix wants to merge 2 commits intosugarlabs:masterfrom
FirePheonix:docByIdUndefined

Conversation

@FirePheonix
Copy link
Contributor

@FirePheonix FirePheonix commented Jan 18, 2025

fixes: #4293

Music Blocks - Google Chrome 19-01-2025 04_30_40

I simply commented out the console.error . Made sure that the functionality works and we weren't in ANY race conditions because of this one.

and yes, the docByID undefined error occured due to code containing the docByID function not being loaded before it being called during initialization.

@FirePheonix FirePheonix changed the title Fix: Simply removed the Console Error Fix: docByID undefined Jan 18, 2025
@walterbender
Copy link
Member

Wouldn't it be better to fix the race condition?

@FirePheonix
Copy link
Contributor Author

yep. that's right. i'm working on it.

@BeNikk
Copy link
Contributor

BeNikk commented Jan 19, 2025

I think this race condition can be solved by ensuring utils.js file (in which docById is defined) is loaded before activity.js, has to be a small fix

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