@overmap-ai/core 1.0.60-forms-removal.7 → 1.0.60-forms-removal.8
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.
package/dist/overmap-core.js
CHANGED
|
@@ -2613,6 +2613,9 @@ const formSlice = createSlice({
|
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
2615
2615
|
const { setForms, setForm, addForm, addForms, updateForm, deleteForm } = formSlice.actions;
|
|
2616
|
+
const selectFormsMapping = (state) => {
|
|
2617
|
+
return state.formReducer.instances;
|
|
2618
|
+
};
|
|
2616
2619
|
const selectFilteredForms = restructureCreateSelectorWithArgs(
|
|
2617
2620
|
createSelector(
|
|
2618
2621
|
[
|
|
@@ -2649,9 +2652,11 @@ const selectFilteredForms = restructureCreateSelectorWithArgs(
|
|
|
2649
2652
|
{ memoizeOptions: { equalityCheck: shallowEqual } }
|
|
2650
2653
|
)
|
|
2651
2654
|
);
|
|
2652
|
-
const selectForm = (
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
+
const selectForm = restructureCreateSelectorWithArgs(
|
|
2656
|
+
createSelector([selectFormsMapping, (_, formId) => formId], (userForms, formId) => {
|
|
2657
|
+
return userForms[formId];
|
|
2658
|
+
})
|
|
2659
|
+
);
|
|
2655
2660
|
const selectFormMapping = (state) => {
|
|
2656
2661
|
return state.formReducer.instances;
|
|
2657
2662
|
};
|
|
@@ -7527,6 +7532,7 @@ export {
|
|
|
7527
7532
|
selectFormSubmissionsOfForm,
|
|
7528
7533
|
selectFormSubmissionsOfIssue,
|
|
7529
7534
|
selectFormsCount,
|
|
7535
|
+
selectFormsMapping,
|
|
7530
7536
|
selectGeneralFormCount,
|
|
7531
7537
|
selectHiddenAssetTypeIds,
|
|
7532
7538
|
selectHiddenCategoryCount,
|