Skip to content

Commit

Permalink
Deploying version 2.1.2+1709323971
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Mar 1, 2024
1 parent 3573093 commit 542c5c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion isp-site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "isp-site",
"version": "2.1.2+1709306936",
"version": "2.1.2+1709323971",
"homepage": "https://inst.bid/#/",
"private": true,
"dependencies": {
Expand Down
10 changes: 5 additions & 5 deletions isp-site/src/routes/mdui.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Modules
import React, { useState, useEffect } from "react";
import React, { useState, useEffect, useRef } from "react";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
import remarkGemoji from "remark-gemoji";
Expand All @@ -21,7 +21,7 @@ export default function MDUI() {
const l = getLang(useParams().language);
const s = getStrings(strings, l);
const md = markdownSample;
let init = true;
const init = useRef(true);

useEffect(() => {
document.title = "Markdown to Instructure UI";
Expand All @@ -31,8 +31,8 @@ export default function MDUI() {

useEffect(
(text) => {
if (init) {
init = false;
if (init.current) {
init.current = false;
const getMD = async () => {
await fetch(md)
.then((response) => {
Expand All @@ -49,7 +49,7 @@ export default function MDUI() {
}
setContent(text);
},
[md, init, s.fetch_fail],
[md, s.fetch_fail],
);

return (
Expand Down

0 comments on commit 542c5c1

Please sign in to comment.