mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 10:55:57 +08:00
set default initialValue to an empty string in TextFieldWithSubmit component (#4207)
This commit is contained in:
@ -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: '',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user