X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/92308b1b044dee2970c4409a0da660ccbecce945..6f3e2cd586172574f2b6ee0f03fc5c79e7ce3b32:/services/workbench2/src/store/favorite-panel/favorite-panel-middleware-service.ts diff --git a/services/workbench2/src/store/favorite-panel/favorite-panel-middleware-service.ts b/services/workbench2/src/store/favorite-panel/favorite-panel-middleware-service.ts index 0229834c3b..a15690b3f4 100644 --- a/services/workbench2/src/store/favorite-panel/favorite-panel-middleware-service.ts +++ b/services/workbench2/src/store/favorite-panel/favorite-panel-middleware-service.ts @@ -77,7 +77,6 @@ export class FavoritePanelMiddlewareService extends DataExplorerMiddlewareServic response.items.push(it); }); - api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId())); api.dispatch(resourcesActions.SET_RESOURCES(response.items)); await api.dispatch(loadMissingProcessesInformation(response.items)); api.dispatch(favoritePanelActions.SET_ITEMS({ @@ -87,8 +86,8 @@ export class FavoritePanelMiddlewareService extends DataExplorerMiddlewareServic rowsPerPage: response.limit })); api.dispatch(updateFavorites(response.items.map((item: any) => item.uuid))); - } catch (e) { api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId())); + } catch (e) { api.dispatch(favoritePanelActions.SET_ITEMS({ items: [], itemsAvailable: 0, @@ -96,6 +95,7 @@ export class FavoritePanelMiddlewareService extends DataExplorerMiddlewareServic rowsPerPage: dataExplorer.rowsPerPage })); api.dispatch(couldNotFetchFavoritesContents()); + api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId())); } } }