Bug Report: Template variables are given a default empty string value even when nothing is entered in the default value form #2780
iampearceman
started this conversation in
Feature Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
📜 Description
When creating a template, even when you do not set a default variable, the value is set to an empty string.
👟 Reproduction steps
Create a template and use a variable named
testVarbut do not enter a default value. SendtestVarin your payload as null or undefined.👍 Expected behavior
Novu should not overwrite with an empty string if there is no default value set.
👎 Actual Behavior with Screenshots
Note that when inspecting the "payload" in the activity feed Novu will have sent an empty string as a default value for
testVar.You can also check by getting the template from the API and seeing this in the variables:
Beta Was this translation helpful? Give feedback.
All reactions