Skip to content
Snippets Groups Projects

DEICH-6240 move declaration of abortController

Merged Petter Goksøyr Åsen requested to merge DEICH-6240 into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -38,6 +38,8 @@ const WorkSeriesPublicationList = props => {
dispatch(toggleFavourites(data));
};
const abortController = new AbortController();
const handleLink = () => {
tracker.click(WORKSERIES, workSeriesLabel, SHOW_MORE);
};
@@ -64,7 +66,6 @@ const WorkSeriesPublicationList = props => {
// Search for the data and set the result
useEffect(() => {
const abortController = new AbortController();
search().catch (e => {
if (e.name !== "AbortError") {