summaryrefslogtreecommitdiff
path: root/org-fc-dashboard.el
diff options
context:
space:
mode:
authorJethro Kuan <jethrokuan95@gmail.com>2020-02-08 23:23:59 +0800
committerJethro Kuan <jethrokuan95@gmail.com>2020-02-08 23:23:59 +0800
commit4d8d69a958be5382986cd61d9a34cc2cdf954515 (patch)
tree67b4b555c455c96e7023eb932ff4d0d92957c755 /org-fc-dashboard.el
parente3ae22e1dde0760eeaf509f340e5ca7bc7dfc3ed (diff)
Fix dashboard view crashing when there are no cards
Diffstat (limited to 'org-fc-dashboard.el')
-rw-r--r--org-fc-dashboard.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/org-fc-dashboard.el b/org-fc-dashboard.el
index e92dfa2..369eed4 100644
--- a/org-fc-dashboard.el
+++ b/org-fc-dashboard.el
@@ -108,7 +108,7 @@
(:type-cloze . "Cloze")))
(insert
(format " %6d %s\n"
- (plist-get cards-stats (car position))
+ (or (plist-get cards-stats (car position)) 0)
(cdr position))))
(insert "\n")