diff --git a/packages/features/schedules/components/ScheduleListItem.tsx b/packages/features/schedules/components/ScheduleListItem.tsx
index a781ed5c8b..aa6670153a 100644
--- a/packages/features/schedules/components/ScheduleListItem.tsx
+++ b/packages/features/schedules/components/ScheduleListItem.tsx
@@ -5,7 +5,6 @@ import { availabilityAsString } from "@calcom/lib/availability";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { sortAvailabilityStrings } from "@calcom/lib/weekstart";
import type { RouterOutputs } from "@calcom/trpc/react";
-import { trpc } from "@calcom/trpc/react";
import {
Badge,
Button,
@@ -39,8 +38,6 @@ export function ScheduleListItem({
}) {
const { t, i18n } = useLocale();
- const { data, isPending } = trpc.viewer.availability.schedule.get.useQuery({ scheduleId: schedule.id });
-
return (
@@ -93,56 +90,54 @@ export function ScheduleListItem({
StartIcon="ellipsis"
/>
- {!isPending && data && (
-
- {!schedule.isDefault && (
-
- {
- updateDefault({
- scheduleId: schedule.id,
- isDefault: true,
- });
- }}>
- {t("set_as_default")}
-
-
- )}
-
- {
- duplicateFunction({
- scheduleId: schedule.id,
- });
- }}>
- {t("duplicate")}
-
-
+
+ {!schedule.isDefault && (
{
- if (!isDeletable) {
- showToast(t("requires_at_least_one_schedule"), "error");
- } else {
- deleteFunction({
- scheduleId: schedule.id,
- });
- }
+ updateDefault({
+ scheduleId: schedule.id,
+ isDefault: true,
+ });
}}>
- {t("delete")}
+ {t("set_as_default")}
-
- )}
+ )}
+
+ {
+ duplicateFunction({
+ scheduleId: schedule.id,
+ });
+ }}>
+ {t("duplicate")}
+
+
+
+ {
+ if (!isDeletable) {
+ showToast(t("requires_at_least_one_schedule"), "error");
+ } else {
+ deleteFunction({
+ scheduleId: schedule.id,
+ });
+ }
+ }}>
+ {t("delete")}
+
+
+