mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Reset state of PathPickerModal after closing
This commit is contained in:
@@ -20,6 +20,7 @@ export default function PathPickerModal({returnSelectedPath, isOpen, onOpenChang
|
||||
<Formik initialValues={{path: currentlySelectedPath}}
|
||||
onSubmit={(values: any) => {
|
||||
returnSelectedPath(values.path);
|
||||
setCurrentlySelectedPath("");
|
||||
onClose();
|
||||
}}>
|
||||
{(formik) => {
|
||||
|
||||
Reference in New Issue
Block a user