Remove unused function
This commit is contained in:
parent
45a1bde010
commit
48fd23064c
1 changed files with 0 additions and 13 deletions
|
|
@ -32,16 +32,3 @@ export function cleanParams(
|
||||||
|
|
||||||
return cleaned;
|
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 === "";
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue