We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22b28e commit 9cb0965Copy full SHA for 9cb0965
src/components/notification-picker.tsx
@@ -41,7 +41,6 @@ export function NotificationPicker({
41
...model,
42
notification: {
43
...model.notification,
44
- sendTo: model.notification?.sendTo || '',
45
selectedEvents: updatedEvents
46
}
47
});
@@ -52,8 +51,8 @@ export function NotificationPicker({
52
51
53
const sendToChange = useCallback(
54
(e: React.ChangeEvent<HTMLInputElement>) => {
55
- const { value } = e.target;
56
- const updatedNotification = { ...model.notification, sendTo: value };
+ const { name, value } = e.target;
+ const updatedNotification = { ...model.notification, [name]: value };
57
modelChange({ ...model, notification: updatedNotification });
58
},
59
[model, modelChange]
0 commit comments