set default initialValue to an empty string in TextFieldWithSubmit component (#4207)

This commit is contained in:
Yash Kumar
2025-02-14 22:32:24 -08:00
committed by GitHub
parent a963ac0135
commit 2c42b901f2

View File

@ -27,7 +27,7 @@ export type TextFieldWithSubmitProps = TextFieldProps & {
export const TextFieldWithSubmit: FC<TextFieldWithSubmitProps> = ({
apiPath,
configPath = '',
initialValue,
initialValue = '',
useTrim,
useTrimLead,
...textFieldProps // rest of props
@ -152,8 +152,3 @@ export const TextFieldWithSubmit: FC<TextFieldWithSubmitProps> = ({
</div>
);
};
TextFieldWithSubmit.defaultProps = {
configPath: '',
initialValue: '',
};