Skip to content

Commit 3458b33

Browse files
committed
Removed unnecessary logging
1 parent c0d7b28 commit 3458b33

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

src/components/CodeEditor/CodeEditor.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ export default function CodeEditor() {
7070
});
7171
};
7272

73-
function handleEditorChange(value: any, event: any) {
74-
console.log("here is the current model value:", value);
75-
}
73+
// function handleEditorChange(value: any, event: any) {
74+
// console.log("here is the current model value:", value);
75+
// }
7676

7777
return (
7878
<div className="overflow-scroll scroll h-full relative">
7979
<Editor
8080
className="h-full"
8181
defaultLanguage={"yaml"}
8282
value={generateCode() as string}
83-
onChange={handleEditorChange}
83+
// onChange={handleEditorChange}
8484
theme={darkMode ? "vs-dark" : "light"}
8585
/>
8686
</div>

src/components/VisualEditor/CustomNodes/WorkflowNode.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export default function WorkflowNode({
9898
</p>
9999
<div className="flex flex-col gap-2 h-fit max-h-[300px] scroll mt-4">
100100
{workflowData?.jobs?.map((job: any, key: number) => {
101-
console.log(job);
102101
var jobArray, jobName, jobData;
103102
if (typeof job === "object") {
104103
jobArray = objToArrayConverter(job);

src/components/VisualEditor/VisualEditor.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ const nodeTypes: NodeTypes = {
6666
command: CommandNode,
6767
};
6868

69-
const onNodeDrag: OnNodeDrag = (_, node) => {
70-
console.log("drag event", node.data);
71-
};
69+
// const onNodeDrag: OnNodeDrag = (_, node) => {
70+
// console.log("drag event", node.data);
71+
// };
7272

7373
type VisualEditorProps = {
7474
takingScreenshot: boolean;
@@ -275,11 +275,9 @@ export default function VisualEditor({
275275

276276
if (jobs.length && workflows.length) {
277277
workflows.map((workflow) => {
278-
console.log(workflow);
279278
const workflowName = workflow[0];
280279
const workflowData = workflow[1];
281280
const workflowJobsArray = workflow[1].jobs;
282-
console.log(workflowJobsArray);
283281
workflowJobsArray?.map((wJob: any[]) => {
284282
const wJobArray =
285283
typeof wJob === "string" ? [wJob] : objToArrayConverter(wJob)[0];
@@ -515,7 +513,7 @@ export default function VisualEditor({
515513
onNodesChange={onNodesChange}
516514
onEdgesChange={onEdgesChange}
517515
onConnect={onConnect}
518-
onNodeDrag={onNodeDrag}
516+
// onNodeDrag={onNodeDrag}
519517
fitView
520518
fitViewOptions={{
521519
padding: 0.2,

src/pages/Development/Development.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Development() {
1212
const dispatch = useDispatch();
1313
const navigate = useNavigate();
1414
const darkMode = useSelector(getDarkMode);
15-
console.log(objToArrayConverter(configReference));
15+
1616
return (
1717
<div className="flex flex-row justify-center items-center h-full dark:bg-gray-800 relative">
1818
<div className="absolute top-6 w-[90%] flex flex-row justify-between items-center gap-6">

0 commit comments

Comments
 (0)