Skip to content

Commit bb23d2a

Browse files
committed
changed get to nth in vector, because get is not working anymore after update
1 parent 0300bea commit bb23d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/akiee/rank.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
Integer ListState -> Node
1919
Returns node at pos"
2020
([pos] (get (db/tasks) pos))
21-
([pos ls] (get (db/tasks ls) pos)))
21+
([pos ls]
22+
(nth (db/tasks ls) pos)))
2223

2324
(defn move-rank!
2425
"String Integer Integer -> ?"
@@ -43,7 +44,6 @@
4344
new-task (assoc source-task :rank target-rank)
4445
np (db/node-pos-by-key ky (db/nodes))
4546
newer-lon (assoc new-lon np new-task)]
46-
4747
(if target-rank
4848
(db/reset-lon! db/app-state newer-lon)
4949
(println "No target task"))))

0 commit comments

Comments
 (0)