Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vilterp committed Nov 26, 2024
1 parent 894c21a commit 7ed9c89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion uiCommon/dl/ruleGraphEditor/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function splitUpVar(
const newNodes: { [id: string]: GraphNode } = pairsToObj(
newVars.map((newVar, idx) => ({
key: newVar,
val: {
value: {
desc: { type: "JoinVar", name: newVar },
pos: { x: oldNode.pos.x, y: oldNode.pos.y - 15 + idx * 30 },
},
Expand Down
4 changes: 2 additions & 2 deletions uiCommon/dl/ruleGraphEditor/schemaUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ export function newConjunct(
): Conjunct {
const relation = relations.find((r) => r.name === relationName);
const columns = relationColumns(relation);
const pairs: { key: string; val: Term }[] = [];
const pairs: { key: string; value: Term }[] = [];
const existingVars = gatherVars(rule);
columns.forEach((col) => {
const newVar = nextVar(existingVars);
existingVars.push(newVar);
pairs.push({
key: col,
val: varr(newVar),
value: varr(newVar),
});
});
const res = rec(relationName, pairsToObj(pairs));
Expand Down

0 comments on commit 7ed9c89

Please sign in to comment.