mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed node editor
This commit is contained in:
parent
64cc47a116
commit
39967c7e9e
3 changed files with 12 additions and 6 deletions
|
@ -15,7 +15,7 @@ import { useDispatch } from 'react-redux';
|
|||
import { uploadUploadFiles } from '~/redux/uploads/actions';
|
||||
import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
||||
import { selectUploads } from '~/redux/uploads/selectors';
|
||||
import { has, path } from 'ramda';
|
||||
import { path } from 'ramda';
|
||||
import { IUploadStatus } from '~/redux/uploads/reducer';
|
||||
|
||||
export const useFileUploader = (
|
||||
|
@ -66,7 +66,7 @@ export const useFileUploader = (
|
|||
setPendingIDs(newPending);
|
||||
setFiles([...files, ...added]);
|
||||
}
|
||||
}, [statuses, files, pendingIDs, uploadedFiles]);
|
||||
}, [statuses, files, pendingIDs, setFiles, setPendingIDs, uploadedFiles]);
|
||||
|
||||
const pending = useMemo(() => pendingIDs.map(id => statuses[id]).filter(el => !!el), [
|
||||
statuses,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue