Remove unused console.logs
This commit is contained in:
parent
f682abdafe
commit
09f9117b72
@ -107,17 +107,6 @@ export default function RelationshipInfo({ data }) {
|
|||||||
|
|
||||||
const changeConstraint = (key, value) => {
|
const changeConstraint = (key, value) => {
|
||||||
const undoKey = `${key}Constraint`;
|
const undoKey = `${key}Constraint`;
|
||||||
console.log({
|
|
||||||
action: Action.EDIT,
|
|
||||||
element: ObjectType.RELATIONSHIP,
|
|
||||||
rid: data.id,
|
|
||||||
undo: { [undoKey]: data[undoKey] },
|
|
||||||
redo: { [undoKey]: value },
|
|
||||||
message: t("edit_relationship", {
|
|
||||||
refName: data.name,
|
|
||||||
extra: "[constraint]",
|
|
||||||
}),
|
|
||||||
});
|
|
||||||
setUndoStack((prev) => [
|
setUndoStack((prev) => [
|
||||||
...prev,
|
...prev,
|
||||||
{
|
{
|
||||||
|
@ -156,7 +156,6 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (d.reference_definition) {
|
if (d.reference_definition) {
|
||||||
console.log(d);
|
|
||||||
const relationship = {};
|
const relationship = {};
|
||||||
const startTable = table.name;
|
const startTable = table.name;
|
||||||
const startField = field.name;
|
const startField = field.name;
|
||||||
@ -205,7 +204,6 @@ export function fromPostgres(ast, diagramDb = DB.GENERIC) {
|
|||||||
relationships.push(relationship);
|
relationships.push(relationship);
|
||||||
|
|
||||||
relationships.forEach((r, i) => (r.id = i));
|
relationships.forEach((r, i) => (r.id = i));
|
||||||
console.log(relationship);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
table.fields.forEach((f, j) => {
|
table.fields.forEach((f, j) => {
|
||||||
|
@ -37,7 +37,6 @@ const affinity = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function fromSQLite(ast, diagramDb = DB.GENERIC) {
|
export function fromSQLite(ast, diagramDb = DB.GENERIC) {
|
||||||
console.log(ast);
|
|
||||||
const tables = [];
|
const tables = [];
|
||||||
const relationships = [];
|
const relationships = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user