This pull request includes updates to the FlowComponent class in bot/admin/web/src/app/analytics/flow/flow.component.ts to handle errors more gracefully during data fetching operations. The changes involve refactoring the subscribe method calls to include separate handlers for next and error events.
Error handling improvements:
Updated the subscribe method for getApplicationFlow to include an error handler that resets the component state and stops the loading indicator.
Updated the subscribe method for the stories retrieval to include an error handler that resets the component state and stops the loading indicator.
This pull request includes updates to the
FlowComponent
class inbot/admin/web/src/app/analytics/flow/flow.component.ts
to handle errors more gracefully during data fetching operations. The changes involve refactoring thesubscribe
method calls to include separate handlers fornext
anderror
events.Error handling improvements:
subscribe
method forgetApplicationFlow
to include anerror
handler that resets the component state and stops the loading indicator.subscribe
method for the stories retrieval to include anerror
handler that resets the component state and stops the loading indicator.