diff --git a/backend/custom_admin/src/components/schedule-builder/item.tsx b/backend/custom_admin/src/components/schedule-builder/item.tsx index 274b30bfa0..85458a2c9a 100644 --- a/backend/custom_admin/src/components/schedule-builder/item.tsx +++ b/backend/custom_admin/src/components/schedule-builder/item.tsx @@ -220,7 +220,11 @@ export const ScheduleItemCard = ({ }; return ( - + {availability === "unavailable" && ( diff --git a/backend/custom_admin/src/components/shared/django-admin-editor-modal/index.tsx b/backend/custom_admin/src/components/shared/django-admin-editor-modal/index.tsx index a74723a3af..11f2c6666d 100644 --- a/backend/custom_admin/src/components/shared/django-admin-editor-modal/index.tsx +++ b/backend/custom_admin/src/components/shared/django-admin-editor-modal/index.tsx @@ -40,13 +40,8 @@ export const DjangoAdminEditorModal = () => { }); }; - if (!url) { - return null; - } - const baseUrl = document.location.ancestorOrigins?.[0] || document.location.origin; - const itemUrl = `${baseUrl}/admin${url}`; return ( !open && onClose()}> @@ -54,7 +49,16 @@ export const DjangoAdminEditorModal = () => { Admin view -