Skip to content

Commit

Permalink
Attempt to fix problem with connection
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed May 7, 2024
1 parent 7258902 commit bdb58be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"crypto-js": "^4.2.0",
"esptool-js": "^0.3.2",
"firebase": "^10.6.0",
"html-react-parser": "^5.1.10",
"js-yaml": "^4.1.0",
"react": "^18.2.0",
"react-bootstrap": "^2.10.2",
Expand Down
3 changes: 1 addition & 2 deletions src/components/controllerlog/ControllerLog.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { ReactNode, useEffect, useState } from "react";
import { ControllerService } from "../../services";
import Log from "../log/Log";
//import parse from "html-react-parser";

type ControllerLogProps = {
show: boolean;
Expand All @@ -23,7 +22,7 @@ const createLine = (line: string) => {
line = line.replace(/&lt;Idle/g, "&lt;<span class='green'>Idle</span>");
line = line.replace(/error:/g, "<span class='red'>error:</span>");

return <div>{line}</div>;
return <div dangerouslySetInnerHTML={{ __html: line }} />;
};

const ControllerLog = ({
Expand Down

0 comments on commit bdb58be

Please sign in to comment.