Don't attempt to add a places visit list of (nil).
This commit is contained in:
parent
db8d043b27
commit
5836b1867e
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@
|
||||||
required {:db/id (db/id-literal :db.part/user)
|
required {:db/id (db/id-literal :db.part/user)
|
||||||
:page/url (:url (first rows))
|
:page/url (:url (first rows))
|
||||||
:page/guid (:guid (first rows))}
|
:page/guid (:guid (first rows))}
|
||||||
visits (map :visit_date rows)]
|
visits (keep :visit_date rows)]
|
||||||
|
|
||||||
(assoc-if required
|
(assoc-if required
|
||||||
:page/title title
|
:page/title title
|
||||||
:page/visitAt visits)))
|
:page/visitAt visits)))
|
||||||
|
|
Loading…
Reference in a new issue