@overmap-ai/core 1.0.51-bulk-form-submission.3 → 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.
@@ -3641,7 +3641,7 @@ var __publicField = (obj, key, value) => {
3641
3641
  }
3642
3642
  for (const revision of Object.values(revisions)) {
3643
3643
  const form = formsOfComponentTypes[revision.form];
3644
- if (!form || !form.component_type || !ret[form.component_type] || formRevisionSortFn(ret[form.component_type], revision) < 0)
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
  }