-
Couldn't load subscription status.
- Fork 32
🐛 Fix: initialize 3rd party libs #8527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes initialization issues with JavaScript wrapper libraries by converting their init() methods to return Promises and ensuring proper async/await handling. The changes move library initialization from synchronous calls in the Dashboard to properly awaited calls in the Application startup flow.
- Convert
IntlTelInputandDOMPurifywrapper initialization methods to return Promises - Move library initialization from Dashboard to Application with proper async/await pattern
- Ensure libraries are fully loaded before application continues startup
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| osparc/wrapper/IntlTelInput.js | Wraps init method in Promise to handle async library loading |
| osparc/wrapper/DOMPurify.js | Wraps init method in Promise to handle async library loading |
| osparc/dashboard/Dashboard.js | Removes synchronous DOMPurify initialization call |
| osparc/Application.js | Adds proper async/await initialization for both wrapper libraries |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
services/static-webserver/client/source/class/osparc/Application.js
Outdated
Show resolved
Hide resolved
…on.js Co-authored-by: Copilot <[email protected]>
…ore into fix/init-dom-purify
|
🧪 CI InsightsHere's what we observed from your CI run for 30faf37. ✅ Passed Jobs With Interesting Signals
|



What do these changes do?
This PR fixes initialization of some 3rd party libraries by converting their init() methods to return Promises and ensuring proper async/await handling.
reported by @matusdrobuliak66
Related issue/s
How to test
Dev-ops