Code cleanup for file manager

This commit is contained in:
Dane Everitt 2020-07-18 10:45:41 -07:00
parent d644758986
commit ff9f893dc3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 6 additions and 13 deletions

View file

@ -30,10 +30,6 @@ export default () => {
const setSelectedFiles = ServerContext.useStoreActions(actions => actions.files.setSelectedFiles);
useEffect(() => {
// We won't automatically mutate the store when the component re-mounts, otherwise because of
// my (horrible) programming this fires off way more than we intend it to.
mutate();
setSelectedFiles([]);
setDirectory(hash.length > 0 ? hash : '/');
}, [ hash ]);