X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/12fbb73269d10424383cdbd712201498cc8d013a..e2502e5af4abc6fa7e84d999df107e0df6cac43b:/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 b91c05df25..24f7e3272e 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 }; +};