removed compatibility with old format, small fix in editor

This commit is contained in:
Vašek Šraier 2020-10-01 23:33:39 +02:00
parent 1db36531cf
commit 46afc555d6
2 changed files with 0 additions and 9 deletions

View file

@ -242,7 +242,6 @@
<Graph
{tasks}
{repulsionForce}
on:selectTask={clickTask}
on:preSelectTask={startHovering}
bind:this={graph}

View file

@ -50,14 +50,6 @@ export function createEdges(nodes: TaskDescriptor[]): TaskEdge[] {
export async function loadTasks(): Promise<TasksFile> {
const r = await fetch("/tasks.json")
const j = await r.json()
// backward compatibility
if (j.positions != null) {
for (const [id, pos] of Object.entries(j.positions)) {
j.tasks.find((t) => t.id == id).position = pos;
}
}
return j
}