From adfc9c8be287fa0ac79bea6b5e44881c4c653314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Mon, 13 May 2024 11:34:23 +0100 Subject: [PATCH] web: fix Questions component useEffect --- web/src/components/questions/Questions.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/questions/Questions.jsx b/web/src/components/questions/Questions.jsx index a4ca87d02f..2b5e48e505 100644 --- a/web/src/components/questions/Questions.jsx +++ b/web/src/components/questions/Questions.jsx @@ -45,7 +45,9 @@ export default function Questions() { removeQuestion(question.id); }, [client.questions, removeQuestion]); - useEffect(() => client.questions.listenQuestions(), [client.questions, cancellablePromise]); + useEffect(() => { + client.questions.listenQuestions(); + }, [client.questions, cancellablePromise]); useEffect(() => { cancellablePromise(client.questions.getQuestions())