Skip to content

Commit

Permalink
UIQM-588 Added search interface
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Dec 4, 2023
1 parent 7a0ff16 commit 68f6fde
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"inventory": "13.0",
"marc-records-editor": "5.0",
"permissions": "5.6",
"search": "1.2",
"marc-specifications": "1.0",
"instance-authority-links": "2.1"
},
Expand Down
2 changes: 0 additions & 2 deletions src/QuickMarcEditor/QuickMarcEditorContainer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import buildStripes from '../../test/jest/__mock__/stripesCore.mock';
import { useAuthorityLinksCount } from '../queries';
import { applyCentralTenantInHeaders } from './utils';

const mockFetchLinksCount = jest.fn().mockResolvedValue();

const match = {
path: '/marc-authorities/quick-marc/edit-authority/:externalId',
url: '/marc-authorities/quick-marc/edit-authority/external-id',
Expand Down
11 changes: 6 additions & 5 deletions src/queries/useAuthorityLinksCount/useAuthorityLinksCount.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { useQuery } from 'react-query';

import { useNamespace } from '@folio/stripes/core';
import {
useNamespace,
useOkapiKy,
} from '@folio/stripes/core';

import { useTenantKy } from '../../temp';

const useAuthorityLinksCount = ({ id, tenantId } = {}) => {
const ky = useTenantKy({ tenantId });
const useAuthorityLinksCount = ({ id } = {}) => {
const ky = useOkapiKy();
const [namespace] = useNamespace();

const searchParams = {
Expand Down

0 comments on commit 68f6fde

Please sign in to comment.