Skip to content

Commit

Permalink
[DUOS-2748][risk=no] Fix the SO Researchers Console Search Bar (#2433)
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong authored Jan 12, 2024
1 parent 57ddc0d commit 3369c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'});
Expand Down
4 changes: 1 addition & 3 deletions src/pages/signing_official_console/SigningOfficialTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
recalculateVisibleTable,
getSearchFilterFunctions,
searchOnFilteredList

} from '../../libs/utils';
import LibraryCardFormModal from '../../components/modals/LibraryCardFormModal';
import ConfirmationModal from '../../components/modals/ConfirmationModal';
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 3369c22

Please sign in to comment.