X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3853f85e670483e3afa3a15101ea391cac2ba8ec..2f0ac8c05c27a6cb41afe90d40a35a0195a8f885:/src/store/progress-indicator/with-progress.ts diff --git a/src/store/progress-indicator/with-progress.ts b/src/store/progress-indicator/with-progress.ts index b91c05df..24f7e327 100644 --- a/src/store/progress-indicator/with-progress.ts +++ b/src/store/progress-indicator/with-progress.ts @@ -7,7 +7,7 @@ import { connect } from 'react-redux'; import { RootState } from '~/store/store'; export type WithProgressStateProps = { - started: boolean; + working: boolean; }; export const withProgress = (id: string) => @@ -15,6 +15,6 @@ export const withProgress = (id: string) => connect(mapStateToProps(id))(component); export const mapStateToProps = (id: string) => (state: RootState): WithProgressStateProps => { - const progress = state.progressIndicator[id]; - return progress; -}; \ No newline at end of file + const progress = state.progressIndicator.find(p => p.id === id); + return { working: progress ? progress.working : false }; +};