Skip to content

Commit

Permalink
Merge pull request #146 from NIH-NCPI/fd-1681/pref-term-edit
Browse files Browse the repository at this point in the history
FD-1681 - Preferred Terminology or OLS Search w/ Ontology Filters for Mapping Edit and Reset
  • Loading branch information
yelenacox authored Nov 19, 2024
2 parents 39c13d1 + 149bea9 commit 64257f0
Show file tree
Hide file tree
Showing 10 changed files with 685 additions and 419 deletions.
166 changes: 0 additions & 166 deletions src/components/Error/AssignMappingsCheckboxes.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Manager/MappingsFunctions/GetMappingsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const GetMappingsModal = ({
table,
terminology,
}) => {
const { tableId } = useParams();
const [form] = Form.useForm();
const { Search } = Input;
const { searchUrl, vocabUrl, setSelectedKey, user } = useContext(myContext);
Expand All @@ -43,6 +42,7 @@ export const GetMappingsModal = ({
setUnformattedPref,
prefTypeKey,
ontologyApis,
setPrefTerminologies,
} = useContext(SearchContext);
const [page, setPage] = useState(0);
const entriesPerPage = 1000;
Expand All @@ -62,7 +62,6 @@ export const GetMappingsModal = ({
setSelectedBoxes,
} = useContext(MappingContext);
let ref = useRef();

// since the code is passed through searchProp, the '!!' forces it to be evaluated as a boolean.
// if there is a searchProp being passed, it evaluates to true and runs the search function.
// inputValue and currentSearchProp for the search bar is set to the passed searchProp.
Expand Down Expand Up @@ -144,6 +143,7 @@ export const GetMappingsModal = ({
setApiPreferencesCode(undefined);
setSelectedBoxes([]);
setSelectedKey(null);
setPrefTerminologies([]);
};

// Sets currentSearchProp to the value of the search bar and sets page to 0.
Expand Down
Loading

0 comments on commit 64257f0

Please sign in to comment.