We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111f739 commit 5074288Copy full SHA for 5074288
src/actions/storage.js
@@ -64,7 +64,7 @@ export const uploadFile = (dispatch, firebase, config) => {
64
65
return uploadPromise()
66
.then(uploadTaskSnapshot => {
67
- if (!dbPath || !firebase.database) {
+ if (!dbPath || (!firebase.database && !firebase.firestore)) {
68
dispatch({
69
type: FILE_UPLOAD_COMPLETE,
70
meta: { ...config, filename },
0 commit comments