fix(api): ensure we always have profile in cache (before inserted to clickhouse)
This commit is contained in:
@@ -86,6 +86,10 @@ export default function AddNotificationRule({ rule }: Props) {
|
||||
});
|
||||
|
||||
const onSubmit: SubmitHandler<IForm> = (data) => {
|
||||
if (!data.config.events[0]?.name) {
|
||||
toast.error('At least one event is required');
|
||||
return;
|
||||
}
|
||||
mutation.mutate(data);
|
||||
};
|
||||
|
||||
@@ -183,6 +187,10 @@ export default function AddNotificationRule({ rule }: Props) {
|
||||
<code>{'{{properties.your.property}}'}</code> - Get the value
|
||||
of a custom property
|
||||
</li>
|
||||
<li>
|
||||
<code>{'{{profile.firstName}}'}</code> - Get the value of a
|
||||
profile property
|
||||
</li>
|
||||
<li>
|
||||
<div className="flex gap-x-2 flex-wrap">
|
||||
And many more...
|
||||
|
||||
Reference in New Issue
Block a user