diff --git a/uiCommon/dl/ruleGraphEditor/model.ts b/uiCommon/dl/ruleGraphEditor/model.ts index a1a594d93..32fbcdef2 100644 --- a/uiCommon/dl/ruleGraphEditor/model.ts +++ b/uiCommon/dl/ruleGraphEditor/model.ts @@ -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 }, }, diff --git a/uiCommon/dl/ruleGraphEditor/schemaUtils.ts b/uiCommon/dl/ruleGraphEditor/schemaUtils.ts index d6dcd9173..738de3bf4 100644 --- a/uiCommon/dl/ruleGraphEditor/schemaUtils.ts +++ b/uiCommon/dl/ruleGraphEditor/schemaUtils.ts @@ -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));