+ const state = dispatch<any>(getFileUploaderState());
+ if (files.length > 0 && state.length === 0) {
+ dispatch(fileUploaderActions.SET_UPLOAD_FILES(files));
+ onDrop(files);
+ } else if (files.length > 0 && state.length > 0) {
+ dispatch(fileUploaderActions.UPDATE_UPLOAD_FILES(files));
+ onDrop(files);
+ }