Merge branch 'feature/IOS-7-documents-should-upload-in-chronol' into release/1.1.0

This commit is contained in:
Patrick Fic
2021-05-21 08:33:34 -07:00

View File

@@ -57,10 +57,6 @@ export function ImageBrowserScreen({
} }
const onDone = async (data) => { const onDone = async (data) => {
console.log(
"🚀 ~ file: screen-media-browser.component.jsx ~ line 60 ~ data",
data
);
logImEXEvent("imexmobile_upload_documents", { count: data.length }); logImEXEvent("imexmobile_upload_documents", { count: data.length });
//Validate to make sure the totals for the file sizes do not exceed the total on the job. //Validate to make sure the totals for the file sizes do not exceed the total on the job.
@@ -68,7 +64,6 @@ export function ImageBrowserScreen({
if (selectedCameraJobId !== "temp") { if (selectedCameraJobId !== "temp") {
const queryData = await client.query({ const queryData = await client.query({
query: GET_DOC_SIZE_TOTALS, query: GET_DOC_SIZE_TOTALS,
fetchPolicy: "network-only", fetchPolicy: "network-only",
variables: { variables: {
jobId: selectedCameraJobId, jobId: selectedCameraJobId,
@@ -77,7 +72,6 @@ export function ImageBrowserScreen({
const totalOfUploads = await data.reduce(async (acc, val) => { const totalOfUploads = await data.reduce(async (acc, val) => {
//Get the size of the file based on URI. //Get the size of the file based on URI.
const info = await FileSystem.getInfoAsync(val.uri, { size: true }); const info = await FileSystem.getInfoAsync(val.uri, { size: true });
return (await acc) + info.size; return (await acc) + info.size;
}, 0); }, 0);