Skip to content

Commit 4f114ef

Browse files
authored
fix: EventTypeSettings Checkbox booking field label (#23891)
1 parent a9d6fbd commit 4f114ef

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.changeset/cold-dragons-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@calcom/atoms": patch
3+
---
4+
5+
fix: EventTypeSettings Checkbox booking field label

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["@calcom/platform-libraries"],
10+
"ignore": ["@calcom/platform-libraries", "@calcom/api-v2"],
1111
"privatePackages": {
1212
"version": false,
1313
"tag": false

packages/features/form-builder/FormBuilder.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { SubmitHandler, UseFormReturn } from "react-hook-form";
44
import { Controller, useFieldArray, useForm, useFormContext } from "react-hook-form";
55
import type { z } from "zod";
66
import { ZodError } from "zod";
7-
7+
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
88
import { getCurrencySymbol } from "@calcom/app-store/_utils/payments/currencyConversions";
99
import { Dialog } from "@calcom/features/components/controlled-dialog";
1010
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -572,6 +572,7 @@ function FieldEditDialog({
572572
paymentCurrency: string;
573573
}) {
574574
const { t } = useLocale();
575+
const isPlatform = useIsPlatform();
575576
const fieldForm = useForm<RhfFormField>({
576577
defaultValues: dialog.data || {},
577578
//resolver: zodResolver(fieldSchema),
@@ -649,7 +650,7 @@ function FieldEditDialog({
649650
{...fieldForm.register("disableOnPrefill", { setValueAs: Boolean })}
650651
/>
651652
<div>
652-
{formFieldType === "boolean" ? (
653+
{formFieldType === "boolean" && !isPlatform ? (
653654
<CheckboxFieldLabel fieldForm={fieldForm} />
654655
) : (
655656
<InputField

0 commit comments

Comments
 (0)