Merge branch 'develop' into chore/form-refactor
This commit is contained in:
15 files changed
+375
-6
No files matched your search
@@ -8,8 +8,6 @@ interface UseNotificationFormOptions {
|
||||
}
|
||||
|
||||
function buildDefaults(data: Notification | null): NotificationFormData {
|
||||
// Every channel field defaults to "" (not undefined) so untouched required
|
||||
// fields fail zod with their custom messages instead of a type error.
|
||||
return {
|
||||
type: data?.type ?? "email",
|
||||
notificationName: data?.notificationName || "",
|
||||
|
||||
Reference in new issue
Block a user