mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Fix transparency import info
This commit is contained in:
parent
a1d2088c5c
commit
a47ef552e8
1 changed files with 2 additions and 1 deletions
|
|
@ -198,7 +198,8 @@ export function parseVCalendarFromTextContents(text: string): Partial<CalendarEv
|
|||
}
|
||||
|
||||
if (line.startsWith('TRANSP:')) {
|
||||
const transparency = (line.split('TRANSP:')[1] as CalendarEvent['extra']['transparency']) || 'default';
|
||||
const transparency = (line.split('TRANSP:')[1] || 'default')
|
||||
.toLowerCase() as CalendarEvent['extra']['transparency'];
|
||||
|
||||
partialCalendarEvent.extra = {
|
||||
...(partialCalendarEvent.extra! || {}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue