@overmap-ai/core 1.0.48-bulk-form-submission.0 → 1.0.48-bulk-form-submission.1

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.
@@ -3557,7 +3557,7 @@ const selectFormRevisions = createSelector(
3557
3557
  [selectFormRevisionMapping],
3558
3558
  (formRevisions) => Object.values(formRevisions)
3559
3559
  );
3560
- const selectUserFormRevision = (formRevisionId) => (state) => {
3560
+ const selectFormRevision = (formRevisionId) => (state) => {
3561
3561
  return state.formRevisionReducer.formRevisions[formRevisionId];
3562
3562
  };
3563
3563
  const _selectLatestFormRevision = (formRevisions, formId2) => {
@@ -14203,7 +14203,7 @@ const FormRenderer = memo(
14203
14203
  const FormSubmissionViewer = memo(
14204
14204
  forwardRef((props, ref) => {
14205
14205
  const { submission, showFormDescription = false, showFormTitle = true } = props;
14206
- const revision = useAppSelector(selectUserFormRevision(submission.form_revision));
14206
+ const revision = useAppSelector(selectFormRevision(submission.form_revision));
14207
14207
  const { sdk } = useSDK();
14208
14208
  if (!revision) {
14209
14209
  throw new Error(
@@ -14398,7 +14398,7 @@ const FormSubmissionBrowserEntry = memo((props) => {
14398
14398
  const createdBy = useAppSelector(selectUser("created_by" in submission ? submission.created_by : currentUser.id));
14399
14399
  const dateToUse = submission.submitted_at;
14400
14400
  const formattedDateTime = getLocalDateString(dateToUse);
14401
- const revision = useAppSelector(selectUserFormRevision(submission.form_revision));
14401
+ const revision = useAppSelector(selectFormRevision(submission.form_revision));
14402
14402
  if (!revision) {
14403
14403
  throw new Error(`Could not find revision ${submission.form_revision} for submission ${submission.offline_id}.`);
14404
14404
  }
@@ -16057,6 +16057,7 @@ export {
16057
16057
  selectFavouriteProjects,
16058
16058
  selectFileAttachmentsOfIssue,
16059
16059
  selectFilteredUserForms,
16060
+ selectFormRevision,
16060
16061
  selectFormRevisionMapping,
16061
16062
  selectFormRevisions,
16062
16063
  selectFormRevisionsOfForm,
@@ -16141,7 +16142,6 @@ export {
16141
16142
  selectUser,
16142
16143
  selectUserForm,
16143
16144
  selectUserFormMapping,
16144
- selectUserFormRevision,
16145
16145
  selectUserFormRevisionAttachmentsMapping,
16146
16146
  selectUsersAsMapping,
16147
16147
  selectVisibleStatuses,