[#78] added tests
This commit is contained in:
@@ -91,7 +91,7 @@ export default function EventDisplayModal({
|
||||
const [repetition, setRepetition] = useState<RepetitionObject>(
|
||||
event.repetition ?? ({} as RepetitionObject)
|
||||
);
|
||||
const [alarm, setAlarm] = useState(event.alarm.trigger);
|
||||
const [alarm, setAlarm] = useState(event?.alarm?.trigger ?? "");
|
||||
const [busy, setBusy] = useState("");
|
||||
const [eventClass, setEventClass] = useState(event?.class ?? "PUBLIC");
|
||||
const [timezone, setTimezone] = useState(event?.timezone ?? "UTC");
|
||||
|
||||
@@ -105,7 +105,6 @@ export function parseCalendarEvent(
|
||||
}
|
||||
|
||||
if (valarm) {
|
||||
console.log(valarm);
|
||||
event.alarm = {} as AlarmObject;
|
||||
for (const [key, params, type, value] of valarm[1]) {
|
||||
switch (key.toLowerCase()) {
|
||||
|
||||
Reference in New Issue
Block a user