Skip to content

Commit 5074288

Browse files
Scott Pruedirathea
Scott Prue
andcommitted
fix(storage): support only firestore when calling upload and writing to db - prescottprue#601
Co-Authored-By: Aldira Putra Raharja <dirathea@users.noreply.github.com>
1 parent 111f739 commit 5074288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const uploadFile = (dispatch, firebase, config) => {
6464

6565
return uploadPromise()
6666
.then(uploadTaskSnapshot => {
67-
if (!dbPath || !firebase.database) {
67+
if (!dbPath || (!firebase.database && !firebase.firestore)) {
6868
dispatch({
6969
type: FILE_UPLOAD_COMPLETE,
7070
meta: { ...config, filename },

0 commit comments

Comments
 (0)