From f74f82d05ed81dd66143e864d211c3a3ccaf245b Mon Sep 17 00:00:00 2001 From: uo285427 Date: Tue, 30 Apr 2024 01:52:30 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1ado=20mas=20dependencias=20que=20causaba?= =?UTF-8?q?n=20error=20en=20el=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/GeneratedQuestionsList.js | 2 +- webapp/src/components/RankingList.js | 2 +- webapp/src/components/RecordList.js | 2 +- webapp/src/components/UsersList.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/src/components/GeneratedQuestionsList.js b/webapp/src/components/GeneratedQuestionsList.js index f5861d54..4411171b 100644 --- a/webapp/src/components/GeneratedQuestionsList.js +++ b/webapp/src/components/GeneratedQuestionsList.js @@ -31,7 +31,7 @@ const GeneratedQuestionsList = ({setError}) => { }; fetchQuestions(); - }, [apiEndpoint]); + }, [apiEndpoint, setError]); const handleSort = (column) => { if (sortColumn === column) { diff --git a/webapp/src/components/RankingList.js b/webapp/src/components/RankingList.js index 7ba00ec9..ca8b5642 100644 --- a/webapp/src/components/RankingList.js +++ b/webapp/src/components/RankingList.js @@ -32,7 +32,7 @@ const RankingList = ({setError}) => { }; fetchUsers(); - }, [apiEndpoint]); + }, [apiEndpoint, setError]); const sortedUsers = [...listUsers].sort((a, b) => { if (sortColumn === 'username') { diff --git a/webapp/src/components/RecordList.js b/webapp/src/components/RecordList.js index da88832f..3ed39bbd 100644 --- a/webapp/src/components/RecordList.js +++ b/webapp/src/components/RecordList.js @@ -26,7 +26,7 @@ const RecordList = ({ username, setError }) => { }; fetchRecords(); - }, [apiEndpoint, username]); + }, [apiEndpoint, username, setError]); return (
diff --git a/webapp/src/components/UsersList.js b/webapp/src/components/UsersList.js index aa9650af..0e16de01 100644 --- a/webapp/src/components/UsersList.js +++ b/webapp/src/components/UsersList.js @@ -34,7 +34,7 @@ const UsersList = ({ setError }) => { } }; fetchUsers(); - }, [apiEndpoint]); + }, [apiEndpoint, setError]); const sortedUsers = [...listUsers].sort((a, b) => { if (sortColumn === 'username') {