diff --git a/frontend/hub/api.tsx b/frontend/hub/api.tsx index 47ed982f68..856ba05280 100644 --- a/frontend/hub/api.tsx +++ b/frontend/hub/api.tsx @@ -23,7 +23,7 @@ export function pulpAPI(strings: TemplateStringsArray, ...values: string[]) { } export type QueryParams = { - [key: string]: string; + [key: string]: string | undefined; }; export function getQueryString(queryParams: QueryParams) { diff --git a/frontend/hub/collections/hooks/useCollectionVersionColumns.tsx b/frontend/hub/collections/hooks/useCollectionVersionColumns.tsx index 0099282995..11aef09556 100644 --- a/frontend/hub/collections/hooks/useCollectionVersionColumns.tsx +++ b/frontend/hub/collections/hooks/useCollectionVersionColumns.tsx @@ -10,10 +10,7 @@ import { ITableColumn, TextCell } from '../../../../framework'; import { RouteObj } from '../../../Routes'; import { CollectionVersionSearch } from '../CollectionVersionSearch'; -export function useCollectionVersionColumns(_options?: { - disableSort?: boolean; - disableLinks?: boolean; -}) { +export function useCollectionVersionColumns() { const { t } = useTranslation(); return useMemo[]>( () => [ diff --git a/frontend/hub/namespaces/HubNamespace.tsx b/frontend/hub/namespaces/HubNamespace.tsx index 1eccf3abbf..2c4652e364 100644 --- a/frontend/hub/namespaces/HubNamespace.tsx +++ b/frontend/hub/namespaces/HubNamespace.tsx @@ -19,6 +19,8 @@ export interface LatestMetadataType { } export interface HubNamespace { + description?: string; + company?: string; pulp_href: string; pulp_created: string; name: string; diff --git a/frontend/hub/namespaces/HubNamespaces.tsx b/frontend/hub/namespaces/HubNamespaces.tsx index a3c1f519d3..e5debb6d8b 100644 --- a/frontend/hub/namespaces/HubNamespaces.tsx +++ b/frontend/hub/namespaces/HubNamespaces.tsx @@ -8,7 +8,7 @@ import { useHubNamespaceActions } from './hooks/useHubNamespaceActions'; import { useHubNamespaceFilters } from './hooks/useHubNamespaceFilters'; import { useHubNamespaceToolbarActions } from './hooks/useHubNamespaceToolbarActions'; import { useHubNamespacesColumns } from './hooks/useHubNamespacesColumns'; -import { idKeyFn, pulpAPI } from '../api'; +import { nameKeyFn, pulpAPI } from '../api'; export function Namespaces() { const { t } = useTranslation(); @@ -75,7 +75,7 @@ export function CommonNamespaces({ const rowActions = useHubNamespaceActions(); const view = usePulpView({ url, - keyFn: idKeyFn, + keyFn: nameKeyFn, toolbarFilters, tableColumns, queryParams,