From 54cd413f1498905ebd2fa2b03a6f991aa1c53c65 Mon Sep 17 00:00:00 2001 From: Danny Wahl Date: Wed, 27 Sep 2023 09:56:12 -0600 Subject: [PATCH] add missing dependency to useEffect() --- isp-site/src/routes/MDUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isp-site/src/routes/MDUI.js b/isp-site/src/routes/MDUI.js index b27f9c29..fa58052b 100644 --- a/isp-site/src/routes/MDUI.js +++ b/isp-site/src/routes/MDUI.js @@ -17,7 +17,7 @@ export default function MDUI() { const [content, setContent] = useState('Loading...') - useEffect(() => { + useEffect((md) => { fetch(md) .then((response) => { if (response.ok) return response.text()