Merge pull request #664 from lethemanh/660-remove-owner-in-calendar-of-resource

#660 remove owner in calendar of resource
This commit is contained in:
lethemanh
2026-03-18 16:47:09 +07:00
committed by GitHub
+2 -1
View File
@@ -15,7 +15,8 @@ export function CalendarName({ calendar }: { calendar: Calendar }) {
const ownerId = calendar.id.split("/")[0];
const ownerDisplayName = makeDisplayName(calendar) ?? "";
const isOwnCalendar = userData.openpaasId === ownerId;
const showCaption = calendar.name !== "#default" && !isOwnCalendar;
const showCaption =
calendar.name !== "#default" && !isOwnCalendar && !calendar.owner?.resource;
return (
<Box