Misssing Reference in saga
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
import * as FileSystem from "expo-file-system";
|
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 { handleUpload } from "../../util/document-upload.utility";
|
||||||
import { uploadPhotosFailure, uploadPhotosSuccess } from "./photos.actions";
|
import {
|
||||||
|
uploadPhotosFailure,
|
||||||
|
uploadPhotosSuccess,
|
||||||
|
removeAllPhotos,
|
||||||
|
} from "./photos.actions";
|
||||||
import PhotosActionTypes from "./photos.types";
|
import PhotosActionTypes from "./photos.types";
|
||||||
|
|
||||||
export function* onRemovePhotos() {
|
export function* onRemovePhotos() {
|
||||||
@@ -53,7 +57,6 @@ export function* onUploadAllPhotos() {
|
|||||||
|
|
||||||
export function* uploadAllPhotosAction() {
|
export function* uploadAllPhotosAction() {
|
||||||
try {
|
try {
|
||||||
yield delay(500);
|
|
||||||
const photos = yield select((state) => state.photos.photos);
|
const photos = yield select((state) => state.photos.photos);
|
||||||
const bodyshop = yield select((state) => state.user.bodyshop);
|
const bodyshop = yield select((state) => state.user.bodyshop);
|
||||||
const user = yield select((state) => state.user);
|
const user = yield select((state) => state.user);
|
||||||
|
|||||||
Reference in New Issue
Block a user