Skip to content

Commit

Permalink
add missing dependency to useEffect()
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Sep 27, 2023
1 parent aab2b4b commit 54cd413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isp-site/src/routes/MDUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 54cd413

Please sign in to comment.