Skip to content

Commit 0872d53

Browse files
committed
dealing with tsc errors
1 parent 0a249fd commit 0872d53

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

frontend/hub/api.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function pulpAPI(strings: TemplateStringsArray, ...values: string[]) {
2323
}
2424

2525
export type QueryParams = {
26-
[key: string]: string;
26+
[key: string]: string | undefined;
2727
};
2828

2929
export function getQueryString(queryParams: QueryParams) {

frontend/hub/collections/hooks/useCollectionVersionColumns.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ import { ITableColumn, TextCell } from '../../../../framework';
1010
import { RouteObj } from '../../../Routes';
1111
import { CollectionVersionSearch } from '../CollectionVersionSearch';
1212

13-
export function useCollectionVersionColumns(_options?: {
14-
disableSort?: boolean;
15-
disableLinks?: boolean;
16-
}) {
13+
export function useCollectionVersionColumns() {
1714
const { t } = useTranslation();
1815
return useMemo<ITableColumn<CollectionVersionSearch>[]>(
1916
() => [

frontend/hub/namespaces/HubNamespace.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export interface LatestMetadataType {
1919
}
2020

2121
export interface HubNamespace {
22+
description?: string;
23+
company?: string;
2224
pulp_href: string;
2325
pulp_created: string;
2426
name: string;

frontend/hub/namespaces/HubNamespaces.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useHubNamespaceActions } from './hooks/useHubNamespaceActions';
88
import { useHubNamespaceFilters } from './hooks/useHubNamespaceFilters';
99
import { useHubNamespaceToolbarActions } from './hooks/useHubNamespaceToolbarActions';
1010
import { useHubNamespacesColumns } from './hooks/useHubNamespacesColumns';
11-
import { idKeyFn, pulpAPI } from '../api';
11+
import { nameKeyFn, pulpAPI } from '../api';
1212

1313
export function Namespaces() {
1414
const { t } = useTranslation();
@@ -75,7 +75,7 @@ export function CommonNamespaces({
7575
const rowActions = useHubNamespaceActions();
7676
const view = usePulpView<HubNamespace>({
7777
url,
78-
keyFn: idKeyFn,
78+
keyFn: nameKeyFn,
7979
toolbarFilters,
8080
tableColumns,
8181
queryParams,

0 commit comments

Comments
 (0)