removed compatibility with old format, small fix in editor
This commit is contained in:
parent
1db36531cf
commit
46afc555d6
2 changed files with 0 additions and 9 deletions
|
@ -242,7 +242,6 @@
|
|||
|
||||
<Graph
|
||||
{tasks}
|
||||
{repulsionForce}
|
||||
on:selectTask={clickTask}
|
||||
on:preSelectTask={startHovering}
|
||||
bind:this={graph}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue