appease TS
This commit is contained in:
parent
4bfc91a30e
commit
7968258004
1 changed files with 5 additions and 5 deletions
|
@ -45,11 +45,11 @@ export default ({ className }: WithClassname) => {
|
||||||
const directory = ServerContext.useStoreState(state => state.files.directory);
|
const directory = ServerContext.useStoreState(state => state.files.directory);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (visible) {
|
if (!visible) return;
|
||||||
return () => {
|
|
||||||
clearFlashes('files:directory-modal');
|
return () => {
|
||||||
};
|
clearFlashes('files:directory-modal');
|
||||||
}
|
};
|
||||||
}, [ visible ]);
|
}, [ visible ]);
|
||||||
|
|
||||||
const submit = ({ directoryName }: Values, { setSubmitting }: FormikHelpers<Values>) => {
|
const submit = ({ directoryName }: Values, { setSubmitting }: FormikHelpers<Values>) => {
|
||||||
|
|
Loading…
Reference in a new issue