Hi guys, I am using v8 locally, and have created a very simple Vue web application using
embed.umd.min.js
embed.umd.min.js
to view the in-app notifications and
axios
axios
to trigger simple notifications.
If I create a very simple template, with a title of 'Hello {{a}}' and trigger an event with the following payload:
payload: { a: "a", b: "b", c: "c"}
payload: { a: "a", b: "b", c: "c"}
I get a notification that just says 'Hello ' and the passed payload attribute is not included, but what is interesting is that I noticed the following payload returned from the API is (note that the
a
a
attribute is missing)
payload: { a: "", b: "b", c: "c"}
payload: { a: "", b: "b", c: "c"}
If I update the title of the in-app notification to 'Hello {{b}}' and trigger the very same event, I see the same text in the notification 'Hello ' and the following payload returned by the API is:
payload: { a: "a", b: "", c: "c"}
payload: { a: "a", b: "", c: "c"}
Each time, the variable included in the template is removed from the payload that is saved to mongodb. Am I doing something wrong?