Skip to content

Commit

Permalink
chore: remove debugging console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmate committed Jun 26, 2024
1 parent 23fdea1 commit bbde9c1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/DiagramEditor/DiagramEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export default function App(props) {
if (graph) {
// Override the isCellSelectable function
mxGraph.prototype.isCellSelectable = function (cell) {
console.log(cell);
// Check if the cell is an edge, return false if it is
if (this.model.isEdge(cell)) {
return false;
Expand Down Expand Up @@ -176,9 +175,6 @@ export default function App(props) {

React.useEffect(() => {
if (graph) {
console.log("Graph", diagramRef.current);
console.log("Cells", graph.model.cells);

updateDiagramData();
}
}, [graph, selected, refreshDiagram, diagramRef]);
Expand Down Expand Up @@ -525,11 +521,9 @@ export default function App(props) {

const handleAccept = () => {
const source = selected;
console.log(source.id);
const relation = diagramRef.current.relations.find(
(relation) => relation.idMx === source.id,
);
console.log(relation);

if (relation.side1.idMx !== "" && relation.side2.idMx !== "") {
// Find the previous edges
Expand Down Expand Up @@ -1199,7 +1193,6 @@ export default function App(props) {
};

const handleAccept = () => {
console.log("Reinicio diagrama");
diagramRef.current.entities = [];
diagramRef.current.relations = [];

Expand Down

0 comments on commit bbde9c1

Please sign in to comment.