diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 5f8ed04bab..6d6be9e7f7 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -122,7 +122,7 @@ const Header = () => { // Fetching health status information at mount - loadHealthStatus().then(r => console.info(r)); + loadHealthStatus(); // Fetch health status every minute const interval = setInterval(() => { dispatch(fetchHealthStatus()); }, 5000); diff --git a/src/components/events/partials/ModalTabsAndPages/EventDetailsPublicationTab.tsx b/src/components/events/partials/ModalTabsAndPages/EventDetailsPublicationTab.tsx index a34d2a8654..2ae48fb31f 100644 --- a/src/components/events/partials/ModalTabsAndPages/EventDetailsPublicationTab.tsx +++ b/src/components/events/partials/ModalTabsAndPages/EventDetailsPublicationTab.tsx @@ -19,7 +19,7 @@ const EventDetailsPublicationTab = ({ const publications = useAppSelector(state => getPublications(state)); useEffect(() => { - dispatch(fetchEventPublications(eventId)).then(r => console.info(r)); + dispatch(fetchEventPublications(eventId)); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); diff --git a/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx b/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx index b9e6b306b5..9210ef08ce 100644 --- a/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx +++ b/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx @@ -94,7 +94,7 @@ const NewSourcePage = ({ dispatch(fetchRecordings("inputs")); // validate form because dependent default values need to be checked - formik.validateForm().then(r => console.info(r)); + formik.validateForm(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); diff --git a/src/components/shared/RegistrationModal.tsx b/src/components/shared/RegistrationModal.tsx index 3ccda2b80d..85f94ab6f0 100644 --- a/src/components/shared/RegistrationModal.tsx +++ b/src/components/shared/RegistrationModal.tsx @@ -76,7 +76,7 @@ const RegistrationModalContent = () => { }>(); useEffect(() => { - fetchRegistrationInfos().then(r => console.log(r)); + fetchRegistrationInfos(); fetchStatisticSummary(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); diff --git a/src/components/shared/TableFilters.tsx b/src/components/shared/TableFilters.tsx index 9dd7251fcb..5e8ab859a6 100644 --- a/src/components/shared/TableFilters.tsx +++ b/src/components/shared/TableFilters.tsx @@ -148,7 +148,6 @@ const TableFilters = ({ // simply by going to first page and then load resources. // This helps increase performance by reducing the number of calls to load resources. const applyFilterChangesDebounced = async () => { - console.log("Applying filter changes with value: " + itemValue); // No matter what, we go to page one. dispatch(goToPage(0)); // Reload of resource diff --git a/src/slices/notificationSlice.ts b/src/slices/notificationSlice.ts index 7245af0944..09e0e393e8 100644 --- a/src/slices/notificationSlice.ts +++ b/src/slices/notificationSlice.ts @@ -60,7 +60,6 @@ export const addNotification = (params: { const state = getState(); for (const notif of state.notifications.notifications) { if (notif.key === key && notif.context === context) { - console.log("Did not add notification with key " + key + " because a notification with that key already exists."); return; } } @@ -143,7 +142,6 @@ const notificationSlice = createSlice({ }>) { const { notification, id } = action.payload; if (state.notifications.filter(e => e.id === id).length > 0) { - console.log("Notification with id: " + id + " already exists."); state.notifications = state.notifications.map(oldNotification => { if (oldNotification.id === id) { return {