Skip to content

Scheduling infrastructure for absolutely everyone.

Revert "feat: disable select when loading (#2475)" (#2608)

Peer Richelsen10e796f95601
diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx
index 6b3bbf823d0..1706409e31a 100644
--- a/apps/web/pages/event-types/[type].tsx
+++ b/apps/web/pages/event-types/[type].tsx
@@ -151,28 +151,11 @@ const AvailabilitySelect = ({
onBlur: Noop;
onChange: (value: AvailabilityOption | null) => void;
}) => {
- const { t } = useLocale();
const query = trpc.useQuery(["viewer.availability.list"]);
return (
<QueryCell
query={query}
- loading={() => {
- return (
- <Select
- isDisabled
- options={[]}
- isSearchable={false}
- onChange={props.onChange}
- classNamePrefix="react-select"
- className={classNames(
- "react-select-container focus:border-primary-500 focus:ring-primary-500 block w-full min-w-0 flex-1 rounded-sm border border-gray-300 sm:text-sm",
- className
- )}
- placeholder={t("loading")}
- />
- );
- }}
success={({ data }) => {
const options = data.schedules.map((schedule) => ({
value: schedule.id,