From 949ecc70a43b831bbb79415b642038d11ef3c7fb Mon Sep 17 00:00:00 2001 From: Denys Bohdan Date: Wed, 8 Nov 2023 14:04:10 +0100 Subject: [PATCH] UIIN-2677 Fix misspelled Instance notes (all) advanced search query index. --- CHANGELOG.md | 1 + src/filterConfig.js | 2 +- src/hooks/useInstanceMutation/useInstanceMutation.test.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55b664cc5..483b2a712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * ECS: Show info message when user in member tenant tries to view shared instance details without permission. Refs UIIN-2590. * Show only local MARC Authorities when share local instance. Fixes UIIN-2647. * Single instance export - MARC files sent to central tenant from member tenant. Fixes UIIN-2613. +* Fix misspelled Instance notes (all) advanced search query index. Fixes UIIN-2677. ## [10.0.2](https://github.com/folio-org/ui-inventory/tree/v10.0.2) (2023-11-07) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v10.0.1...v10.0.2) diff --git a/src/filterConfig.js b/src/filterConfig.js index 868ca523f..a502438b2 100644 --- a/src/filterConfig.js +++ b/src/filterConfig.js @@ -132,7 +132,7 @@ export const advancedSearchIndexes = { { label: 'ui-inventory.isbn', value: 'isbn' }, { label: 'ui-inventory.issn', value: 'issn' }, { label: 'ui-inventory.search.oclc', value: 'oclc' }, - { label: 'ui-inventory.search.instanceNotes', value: 'isntanceNotes' }, + { label: 'ui-inventory.search.instanceNotes', value: 'instanceNotes' }, { label: 'ui-inventory.search.instanceAdministrativeNotes', value: 'instanceAdministrativeNotes' }, { label: 'ui-inventory.subject', value: 'subject' }, { label: 'ui-inventory.effectiveCallNumberShelving', value: 'callNumber' }, diff --git a/src/hooks/useInstanceMutation/useInstanceMutation.test.js b/src/hooks/useInstanceMutation/useInstanceMutation.test.js index 2af30e622..f20b99e69 100644 --- a/src/hooks/useInstanceMutation/useInstanceMutation.test.js +++ b/src/hooks/useInstanceMutation/useInstanceMutation.test.js @@ -50,7 +50,7 @@ describe('useInstanceMutation', () => { { wrapper }, ); - await act(async () => { result.current.mutateInstance({ id: 'isntanceId' }); }); + await act(async () => { result.current.mutateInstance({ id: 'instanceId' }); }); expect(putMock).toHaveBeenCalled(); });