diff --git a/client/src/components/ManageArtist/AlbumFormComponents/ClickToEditInput.tsx b/client/src/components/ManageArtist/AlbumFormComponents/ClickToEditInput.tsx index 246db7170..9fd2d8248 100644 --- a/client/src/components/ManageArtist/AlbumFormComponents/ClickToEditInput.tsx +++ b/client/src/components/ManageArtist/AlbumFormComponents/ClickToEditInput.tsx @@ -10,7 +10,8 @@ const ClickToEditInput: React.FC<{ defaultValue: string; url: string; formKey: string; -}> = ({ url, formKey, defaultValue }) => { + reload?: () => void; +}> = ({ url, formKey, defaultValue, reload }) => { const [isEditing, setIsEditing] = React.useState(false); const methods = useForm({ defaultValues: { @@ -19,15 +20,11 @@ const ClickToEditInput: React.FC<{ }); const currentValue = methods.getValues(formKey); + return ( <> {!isEditing && ( -
+
{currentValue}