@overmap-ai/core 1.0.51-bulk-form-submission.2 → 1.0.51-bulk-form-submission.4
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.
|
@@ -3636,12 +3636,12 @@ 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)) {
|
|
3643
3643
|
const form = formsOfComponentTypes[revision.form];
|
|
3644
|
-
if (!form || !form.component_type ||
|
|
3644
|
+
if (!form || !form.component_type || ret[form.component_type] && formRevisionSortFn(ret[form.component_type], revision) > 0)
|
|
3645
3645
|
continue;
|
|
3646
3646
|
ret[form.component_type] = revision;
|
|
3647
3647
|
}
|