diff --git a/client/src/utils/paramUtils.ts b/client/src/utils/paramUtils.ts index 69a25a3b..dfc41802 100644 --- a/client/src/utils/paramUtils.ts +++ b/client/src/utils/paramUtils.ts @@ -32,16 +32,3 @@ export function cleanParams( return cleaned; } - -/** - * Checks if a field should be set to undefined when cleared - * @param isRequired - Whether the field is required - * @param value - The current value - * @returns Whether to set the field to undefined - */ -export function shouldSetToUndefined( - isRequired: boolean, - value: string, -): boolean { - return !isRequired && value === ""; -}