Misssing Reference in saga

This commit is contained in:
Patrick Fic
2021-01-12 18:48:15 -08:00
parent 7d1a265dee
commit a263192ae9

View File

@@ -1,7 +1,11 @@
import * as FileSystem from "expo-file-system";
import { all, call, delay, put, select, takeLatest } from "redux-saga/effects";
import { all, call, put, select, takeLatest } from "redux-saga/effects";
import { handleUpload } from "../../util/document-upload.utility";
import { uploadPhotosFailure, uploadPhotosSuccess } from "./photos.actions";
import {
uploadPhotosFailure,
uploadPhotosSuccess,
removeAllPhotos,
} from "./photos.actions";
import PhotosActionTypes from "./photos.types";
export function* onRemovePhotos() {
@@ -53,7 +57,6 @@ export function* onUploadAllPhotos() {
export function* uploadAllPhotosAction() {
try {
yield delay(500);
const photos = yield select((state) => state.photos.photos);
const bodyshop = yield select((state) => state.user.bodyshop);
const user = yield select((state) => state.user);