-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nv 3475 - typeerror cannot create property buttons on string #5172
Nv 3475 - typeerror cannot create property buttons on string #5172
Conversation
❌ Deploy Preview for dev-web-novu failed.
|
if ((command?.cta?.action as IMessageAction | undefined | '') === '') { | ||
throw new ApiException('Please provide a valid CTA action'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like this solution but this would be the best way we could validate and alert the API user with a proper message, and this is because we do not support nested command validation REF, I will raise the topic with the team.
@@ -41,7 +41,7 @@ export function InAppWidgetPreview({ | |||
|
|||
function onRemoveTemplate() { | |||
setIsButtonsTemplateSelected(false); | |||
onChange(''); | |||
onChange({}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This solved the web side issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
…property-buttons-on-string Nv 3475 - typeerror cannot create property buttons on string
What change does this PR introduce?
Resolve the issue where the user is storing an invalid value under message-template.cta.action
Why was this change needed?
bug
Other information (Screenshots)