You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: "Create Relation dialog: Could not find the relation",
122
+
});
126
123
returnnull;
127
124
}
128
125
if(candidateRelations.length!==1){
129
126
// This seems to happen... I need more data.
130
-
internalError(
131
-
`Too many relations between ${selectedTargetType.type} and ${selectedSourceType.type}: ${candidateRelations.map((r)=>r.id).join(",")}`,
132
-
);
127
+
internalError({
128
+
type: "create-relation-error",
129
+
error: `Create Relation dialog: Too many relations between ${selectedTargetType.type} and ${selectedSourceType.type}: ${candidateRelations.map((r)=>r.id).join(",")}`,
130
+
});
133
131
returnnull;
134
132
}
135
133
returncandidateRelations[0];
@@ -276,7 +274,10 @@ const prepareRelData = (
276
274
});
277
275
if(!nodeSchema){
278
276
// should not happen at this point, since the pattern was vetted at input.
279
-
internalError("Could not find identify node downstream");
277
+
internalError({
278
+
error: "Create Relation dialog: Could not find identify node downstream",
279
+
type: "create-relation-error",
280
+
});
280
281
return[];
281
282
}
282
283
// note the same relation could be used in both directions
0 commit comments