fix(settings): preserve notification template edits (#2300)

This commit is contained in:
Aman Tahiliani
2026-08-06 21:17:16 +03:00
committed by GitHub
parent fa63866cbb
commit bcc64f7586
3 changed files with 43 additions and 6 deletions
@@ -152,13 +152,13 @@ export const NotificationSettings: React.FC = () => {
field: 'title' | 'message',
value: string,
) => {
setNotificationTemplates({
...notificationTemplates,
setNotificationTemplates((current) => ({
...current,
[event]: {
...notificationTemplates[event],
...current[event],
[field]: value,
},
});
}));
};
const base64UrlToUint8Array = (base64Url: string): Uint8Array<ArrayBuffer> => {