🔥 refactor(GenericNode/index.tsx): remove unnecessary console.log statement

🔥 refactor(buildTrigger/index.tsx): remove unnecessary console.log statement
The console.log statements were removed as they were no longer needed and were cluttering the code.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-06 15:18:55 -03:00
commit 049a41d25e
2 changed files with 5 additions and 7 deletions

View file

@ -66,7 +66,6 @@ export default function GenericNode({
deleteNode(data.id);
return;
}
console.log(data);
useEffect(() => {}, [closePopUp, data.node.template]);
return (
<>
@ -121,10 +120,11 @@ export default function GenericNode({
"Validating..."
) : (
<div className="max-h-96 overflow-auto">
{validationStatus.params ||
""
.split("\n")
.map((line, index) => <div key={index}>{line}</div>)}
{validationStatus.params
? validationStatus.params
.split("\n")
.map((line, index) => <div key={index}>{line}</div>)
: ""}
</div>
)
}

View file

@ -8,7 +8,6 @@ import { useSSE } from "../../../contexts/SSEContext";
import { typesContext } from "../../../contexts/typesContext";
import { alertContext } from "../../../contexts/alertContext";
import { postBuildInit } from "../../../controllers/API";
import ShadTooltip from "../../ShadTooltipComponent";
import RadialProgressComponent from "../../RadialProgress";
import { TabsContext } from "../../../contexts/tabsContext";
@ -76,7 +75,6 @@ export default function BuildTrigger({
const eventSource = new EventSource(apiUrl);
eventSource.onmessage = (event) => {
console.log(event);
// If the event is parseable, return
if (!event.data) {
return;