-
Notifications
You must be signed in to change notification settings - Fork 79
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
Cannot load MyService.tsx component when monitoringUrl is undefined #804
Comments
Sorry about that, and thanks for reporting. In this particular case, using assertions enables enhanced type safety. It allows TypeScript to understand that if More generally, assertions tell TypeScript to "trust me, I know what I'm doing" in cases where the type system cannot follow. Whenever an assertion is incorrect, like here, it makes for a very easily traceable error. |
@garronej is it fixed ? i guess yes |
Yes it is. I'll do a small refactor so this kind of issues may not happen again. Ref #816 |
Hi,
We updated onyxia with the 8.16.4 version.
In our configuration, the
monitoringUrl
is undefined. In that case, the UI (MyService.tsx component) is not loaded properly. We dig in a bit and it seems that it came from this assert line:onyxia/web/src/core/usecases/serviceDetails/selectors.ts
Line 137 in 720f8ff
Question: Why asserting something that can be undefined? Maybe some other variables are also impacted.
The text was updated successfully, but these errors were encountered: