summaryrefslogtreecommitdiff
path: root/src/chef
diff options
context:
space:
mode:
Diffstat (limited to 'src/chef')
-rw-r--r--src/chef/logic/categories.clj3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chef/logic/categories.clj b/src/chef/logic/categories.clj
index cadcc5a..126cdfd 100644
--- a/src/chef/logic/categories.clj
+++ b/src/chef/logic/categories.clj
@@ -70,7 +70,8 @@
(loop [parents (list)
category category]
(let [updated-parents (conj parents category)]
- (if (not= -1 (:categories/parent category))
+ (if (and (some? (:categories/parent category))
+ (not= -1 (:categories/parent category)))
(recur updated-parents
(get-category (:categories/parent category)))
updated-parents))))