Skip to content

Commit

Permalink
Fix missing notes icon by returning a Just [] when notes exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Mar 14, 2024
1 parent 9cb8fa3 commit 033eb43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasklite-core/source/FullTask.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ instance FromRow FullTask where
( \value -> case fieldData value of
SQLText _txt ->
-- TODO: Parse notes as a JSON array
Ok Nothing
-- Must return a `Just` to signal that notes exist
Ok (Just [])
SQLNull -> Ok Nothing
val ->
Errors
Expand Down

0 comments on commit 033eb43

Please sign in to comment.