The dropdown is calling GetDataSources which returns: loading, error and data. First time the component renders, loading is true but data is undefined, hence the error in the console while trying to access data.dataSources. The component should check whether or not loading, error and data exist and return before accessing dataSources, similar to other components such as SubscriptionsDropDown and DataSourcesList. This implementation however must be consistent with the current UI/UX. |