Skip to content

Commit

Permalink
Set a default when Organiser is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
GregSutcliffe committed Mar 23, 2021
1 parent fb84cec commit b7c4b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/find_groups.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ find_groups <- function(text = NULL, topic_id = NULL, radius = "global",
visibility = map_chr(res, "visibility", .default = NA),
who = map_chr(res, "who", .default = NA),
location = map_chr(res, "localized_location"),
organizer_id = map_int(res, c("organizer", "id")),
organizer_name = map_chr(res, c("organizer", "name")),
organizer_id = map_int(res, c("organizer", "id"), .default = NA),
organizer_name = map_chr(res, c("organizer", "name"), .default = NA),
category_id = map_int(res, c("category", "id"), .default = NA),
category_name = map_chr(res, c("category", "name"), .default = NA),
resource = res
Expand Down

0 comments on commit b7c4b54

Please sign in to comment.