This commit is contained in:
2024-05-22 17:05:25 +03:00
parent 584fe7eb95
commit 069ae72705
9 changed files with 34 additions and 33 deletions
@@ -14,6 +14,7 @@
export let validationErrors;
$: errorMessage = getErrorMessage(validationErrors, field.name);
$: references = graph.edges
.filter((edge) => edge.field === field.name)
.map((edge) => {
@@ -32,7 +33,8 @@
}
function reorder(e) {
graph.edges = sortByField(e.detail.source, e.detail.target, graph.edges, field.name);
graph.edges = sortByField(e.detail.source, e.detail.target, graph.edges, field.name, references);
}
function insert(e) {