X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/25216cc7acedc987c26a159f0b640210c0ef101e..28052f8d76348c19acf601d8db779aaf4baa3de2:/src/store/process-logs-panel/process-logs-panel.ts diff --git a/src/store/process-logs-panel/process-logs-panel.ts b/src/store/process-logs-panel/process-logs-panel.ts index deaaab6a..0ca5d679 100644 --- a/src/store/process-logs-panel/process-logs-panel.ts +++ b/src/store/process-logs-panel/process-logs-panel.ts @@ -1,9 +1,10 @@ -import { RootState } from '../store'; -import { matchProcessLogRoute } from 'routes/routes'; // Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 +import { matchProcessRoute } from 'routes/routes'; +import { RouterState } from 'react-router-redux'; + export interface ProcessLogsPanel { filters: string[]; selectedFilter: string; @@ -18,8 +19,8 @@ export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel) return logs[selectedFilter]; }; -export const getProcessLogsPanelCurrentUuid = ({ router }: RootState) => { +export const getProcessLogsPanelCurrentUuid = (router: RouterState) => { const pathname = router.location ? router.location.pathname : ''; - const match = matchProcessLogRoute(pathname); + const match = matchProcessRoute(pathname); return match ? match.params.id : undefined; };