-
Notifications
You must be signed in to change notification settings - Fork 0
[BUG] Safeguard against undefined
modalities
#305
Comments
good catch @rmanaem. It would be good to understand the difference. But more importantly we should remove the local non-static build scripts and make sure that we develop, test, and then run all in the same way that we deploy. So in other words: the fix for this is not so much to make |
I did a little bit of digging, here is what I found:
This breaks all statements of the form because Although this will be fixed in the API, we will also have to protect here against a modality being null in the future, e.g. by using optional chaining, see "robustness principle". |
I'll rename this issue and work on a safeguard. |
undefined
modalities
Is there an existing issue for this?
Expected Behavior
The app should behave the same in both environments.
Current Behavior
When running the app in
dev
mode on themain
branch the app seems to break and respond with a rather ambiguous error once theSubmit Query
button is clicked. However, the app runs just fine when running in production and was built by runningnpm run generate
andnpm run start
Error message
Environment
No response
How to reproduce
npm run dev
on themain
branch, then run an empty queryvs
npm run generate
andnpm run start
, then run an empty queryAnything else?
No response
The text was updated successfully, but these errors were encountered: