mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: reset snoozeUntil & disabled state on edit
This commit is contained in:
committed by
Abdullah Atta
parent
360b94353a
commit
fbfcfe1bcb
@@ -145,7 +145,6 @@ export default function AddReminderDialog(props: AddReminderDialogProps) {
|
||||
setTime(dayjs(reminder.date).format("HH:mm"));
|
||||
setTitle(reminder.title);
|
||||
setDescription(reminder.description);
|
||||
console.log(reminder);
|
||||
}, [reminderId]);
|
||||
|
||||
const repeatsDaily =
|
||||
@@ -200,7 +199,9 @@ export default function AddReminderDialog(props: AddReminderDialogProps) {
|
||||
selectedDays,
|
||||
date: dateTime.valueOf(),
|
||||
title,
|
||||
description
|
||||
description,
|
||||
disabled: false,
|
||||
...(dateTime.isAfter(dayjs()) ? { snoozeUntil: 0 } : {})
|
||||
});
|
||||
refresh();
|
||||
props.onClose(true);
|
||||
|
||||
Reference in New Issue
Block a user