You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SeupScreen component, there's an attempt to get all model providers available. It tries to access providers[1].provider, and this will throw an error if the array contains only one item.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In the SeupScreen component, there's an attempt to get all model providers available. It tries to access
providers[1].provider
, and this will throw an error if the array contains only one item.This scenario will happen when the app is first installed and there is only one provider configured by default.
Should there be an explicit guard against having zero or only one provider?
Beta Was this translation helpful? Give feedback.
All reactions