Skip to content

Commit c00efbe

Browse files
author
Ruben van Leeuwen
committed
1719: Removes debug mode
1 parent 90eae3a commit c00efbe

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

frontend/packages/pydantic-forms/src/core/PydanticFormContextProvider.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,6 @@ function PydanticFormContextProvider({
8888
cancelButton,
8989
} = config;
9090

91-
// TODO: Fix this again
92-
// option to enable the debug mode on the fly in the browser
93-
// by setting localStorage.setItem("pydanticFormsDebugMode", "true")
94-
// reload is required
95-
const debugMode = false;
96-
97-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9891
const [formInputData, setFormInputData] = useState<object[]>([]);
9992

10093
const addFormInputData = (formInput: object) => {
@@ -336,7 +329,6 @@ function PydanticFormContextProvider({
336329
onCancel,
337330
title,
338331
sendLabel,
339-
debugMode,
340332
isFullFilled,
341333
customDataProvider,
342334
errorDetails,

frontend/packages/pydantic-forms/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export interface PydanticFormContextProps {
5353
rhf: ReturnType<typeof useForm>;
5454
errorDetails?: PydanticFormValidationErrorDetails;
5555
pydanticFormSchema?: PydanticFormSchema;
56-
debugMode?: boolean;
5756
title?: string | boolean;
5857
sendLabel?: string;
5958
onCancel?: () => void;

0 commit comments

Comments
 (0)