Skip to content

Commit

Permalink
Merge pull request #52 from VincentGuyader/main
Browse files Browse the repository at this point in the history
set content to NULL in dynamic_template to avoid error
  • Loading branch information
mrchypark authored Sep 26, 2023
2 parents aded627 + bf6f9f5 commit 37e996b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/dynamic-templates.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dynamic_template <- function(sg_mail, template_id, template_data, force = FALSE)
}
sg_mail[["template_id"]] <- jsonlite::unbox(template_id)
sg_mail$personalizations[["dynamic_template_data"]] <- template_data
sg_mail$content <- NULL
return(sg_mail)
}

Expand Down

0 comments on commit 37e996b

Please sign in to comment.