mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-15 16:20:03 +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}}
|
<Formik initialValues={{path: currentlySelectedPath}}
|
||||||
onSubmit={(values: any) => {
|
onSubmit={(values: any) => {
|
||||||
returnSelectedPath(values.path);
|
returnSelectedPath(values.path);
|
||||||
|
setCurrentlySelectedPath("");
|
||||||
onClose();
|
onClose();
|
||||||
}}>
|
}}>
|
||||||
{(formik) => {
|
{(formik) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user