workflow, handle missing state name

For some reason, some of my stories do not appear to have state
name. This is most likely a bug (either with this mode or the
API), regardless the missing name should be handled gracefully.
This commit is contained in:
Jean-Martin Archer 2020-01-05 09:59:51 -08:00 committed by Griffin Smith
parent ae8d046491
commit 489b37d17d

View file

@ -501,7 +501,7 @@ If set to nil, will never create stories with labels")
(-map (lambda (cell) (cons (cdr cell) (car cell)))
org-clubhouse-state-alist)))
(or (alist-get-equal state-name inv-state-name-alist)
(s-upcase state-name))))
(if state-name (s-upcase state-name) "UNKNOWN"))))
;;;
;;; Prompting