From 3369c2225d103bf4177c9fa6df592d1bd7cc5406 Mon Sep 17 00:00:00 2001 From: Gregory Rushton Date: Fri, 12 Jan 2024 07:56:20 -0500 Subject: [PATCH] [DUOS-2748][risk=no] Fix the SO Researchers Console Search Bar (#2433) --- .../signing_official_console/SigningOfficialResearchers.js | 4 ++-- src/pages/signing_official_console/SigningOfficialTable.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/signing_official_console/SigningOfficialResearchers.js b/src/pages/signing_official_console/SigningOfficialResearchers.js index 56a0459b0..dd3d8a410 100644 --- a/src/pages/signing_official_console/SigningOfficialResearchers.js +++ b/src/pages/signing_official_console/SigningOfficialResearchers.js @@ -8,7 +8,7 @@ import { USER_ROLES } from '../../libs/utils'; export default function SigningOfficialResearchers() { - const [signingOfficial, setSiginingOfficial] = useState({}); + const [signingOfficial, setSigningOfficial] = useState({}); const [researchers, setResearchers] = useState([]); //states to be added and used for manage researcher component @@ -23,7 +23,7 @@ export default function SigningOfficialResearchers() { const researcherList = await User.list(USER_ROLES.signingOfficial); setResearchers(researcherList); - setSiginingOfficial(soUser); + setSigningOfficial(soUser); setIsLoading(false); } catch(error) { Notifications.showError({text: 'Error: Unable to retrieve current user from server'}); diff --git a/src/pages/signing_official_console/SigningOfficialTable.js b/src/pages/signing_official_console/SigningOfficialTable.js index 92c1be7ee..535d5a61c 100644 --- a/src/pages/signing_official_console/SigningOfficialTable.js +++ b/src/pages/signing_official_console/SigningOfficialTable.js @@ -11,7 +11,6 @@ import { recalculateVisibleTable, getSearchFilterFunctions, searchOnFilteredList - } from '../../libs/utils'; import LibraryCardFormModal from '../../components/modals/LibraryCardFormModal'; import ConfirmationModal from '../../components/modals/ConfirmationModal'; @@ -402,11 +401,10 @@ export default function SigningOfficialTable(props) { }), },[ 'Issuing Library Card privileges is done in accordance with the ', a({target: '_blank', href: BroadLibraryCardAgreementLink}, ['Broad']), ' and ', a({target: '_blank', href: NhgriLibraryCardAgreementLink}, ['NHGRI']), ' Library Card Agreements.', - ]), ]), ]), - h(SearchBar, {style: {marginLeft: '25%'}}, { handleSearchChange, searchRef }), + h(SearchBar, { handleSearchChange, searchRef, style: {marginLeft: '25%'}}), div({style: { marginLeft: 15 }}, [ h(SimpleButton, { onClick: () => showModalOnClick(),