diff --git a/client/src/pages/openalex-affiliations/components/send-feedback-button.jsx b/client/src/pages/openalex-affiliations/components/send-feedback-button.jsx index 986a307..1ebe0c0 100644 --- a/client/src/pages/openalex-affiliations/components/send-feedback-button.jsx +++ b/client/src/pages/openalex-affiliations/components/send-feedback-button.jsx @@ -34,8 +34,6 @@ export default function SendFeedbackButton({ corrections, resetCorrections }) { toastType: toastType ?? 'info', }); }, - onOpen: () => console.log('Websocket opened'), - onClose: () => console.log('Websocket closed'), shouldReconnect: () => true, }); diff --git a/client/src/pages/openalex-affiliations/results/index.jsx b/client/src/pages/openalex-affiliations/results/index.jsx index d6fe02b..12cc989 100644 --- a/client/src/pages/openalex-affiliations/results/index.jsx +++ b/client/src/pages/openalex-affiliations/results/index.jsx @@ -53,7 +53,6 @@ export default function Affiliations() { status.excluded.id, ]); const [isLoading, setIsLoading] = useState(false); - const [isLoadingRorData, setIsLoadingRorData] = useState(false); // TODO: spinner dans modal const [isAddModalOpen, setIsAddModalOpen] = useState(false); const [isRemoveModalOpen, setIsRemoveModalOpen] = useState(false); const [ror, setRor] = useState(''); @@ -82,7 +81,6 @@ export default function Affiliations() { useEffect(() => { const get = async () => { - setIsLoadingRorData(true); const addedRors = await Promise.all( addList.map((add) => getRorData(add)), ); @@ -93,7 +91,6 @@ export default function Affiliations() { } }); setUniqueRors({ ...uniqueRors, ...uniqueRorsTmp }); - setIsLoadingRorData(false); }; get(); @@ -277,8 +274,10 @@ export default function Affiliations() { selected: false, }; } - affiliation.selected = false; - return affiliation; + return { + ...affiliation, + selected: false, + }; }); setAffiliations(updatedAffiliations); setRor(''); @@ -712,7 +711,7 @@ export default function Affiliations() { - + />