diff --git a/frontend/packages/dev-console/src/components/pipelineruns/PipelineRunsResourceList.tsx b/frontend/packages/dev-console/src/components/pipelineruns/PipelineRunsResourceList.tsx index 3d91fee10d0..3ceef087968 100644 --- a/frontend/packages/dev-console/src/components/pipelineruns/PipelineRunsResourceList.tsx +++ b/frontend/packages/dev-console/src/components/pipelineruns/PipelineRunsResourceList.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import { getBadgeFromType } from '@console/shared'; import { ListPage } from '@console/internal/components/factory'; import { referenceForModel } from '@console/internal/module/k8s'; import { PipelineRunModel } from '../../models'; @@ -16,6 +17,7 @@ const PipelineRunsResourceList: React.FC ); }; diff --git a/frontend/public/components/factory/list-page.jsx b/frontend/public/components/factory/list-page.jsx index 3bdd0b57622..876d7009bee 100644 --- a/frontend/public/components/factory/list-page.jsx +++ b/frontend/public/components/factory/list-page.jsx @@ -6,7 +6,7 @@ import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Button } from '@patternfly/react-core'; -import { KEYBOARD_SHORTCUTS, getBadgeFromType } from '@console/shared'; +import { KEYBOARD_SHORTCUTS } from '@console/shared'; import { filterList } from '../../actions/k8s'; import { CheckBoxes, storagePrefix } from '../row-filter'; import { ErrorPage404, ErrorBoundaryFallback } from '../error'; @@ -434,7 +434,7 @@ export const ListPage = withFallback((props) => { showTitle={showTitle} textFilter={textFilter} title={title} - badge={badge || getBadgeFromType(ko.badge)} + badge={badge} /> ); }, ErrorBoundaryFallback);