@overmap-ai/core 1.0.51-bulk-form-submission.1 → 1.0.51-bulk-form-submission.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3476,13 +3476,13 @@ var __publicField = (obj, key, value) => {
|
|
|
3476
3476
|
const revisionA = formRevisionA.revision;
|
|
3477
3477
|
const revisionB = formRevisionB.revision;
|
|
3478
3478
|
if (revisionA === "Pending" && revisionB === "Pending") {
|
|
3479
|
-
return formRevisionA.submitted_at < formRevisionB.submitted_at ? 1 :
|
|
3479
|
+
return formRevisionA.submitted_at < formRevisionB.submitted_at ? -1 : 1;
|
|
3480
3480
|
} else if (revisionA === "Pending") {
|
|
3481
|
-
return -1;
|
|
3482
|
-
} else if (revisionB === "Pending") {
|
|
3483
3481
|
return 1;
|
|
3482
|
+
} else if (revisionB === "Pending") {
|
|
3483
|
+
return -1;
|
|
3484
3484
|
} else {
|
|
3485
|
-
return revisionA < revisionB ? 1 :
|
|
3485
|
+
return revisionA < revisionB ? -1 : 1;
|
|
3486
3486
|
}
|
|
3487
3487
|
};
|
|
3488
3488
|
const initialState$5 = {
|
|
@@ -3636,7 +3636,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3636
3636
|
const ret = {};
|
|
3637
3637
|
for (const form of Object.values(userForms)) {
|
|
3638
3638
|
if (form.component_type && componentTypeIdsSet.has(form.component_type)) {
|
|
3639
|
-
formsOfComponentTypes[form.
|
|
3639
|
+
formsOfComponentTypes[form.offline_id] = form;
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
3642
3642
|
for (const revision of Object.values(revisions)) {
|