@overmap-ai/core 1.0.38-component-fields.28 → 1.0.38-component-fields.29
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
|
@@ -3328,7 +3328,7 @@ const selectNumberOfUserForms = createSelector([selectUserFormMapping], (userFor
|
|
|
3328
3328
|
return Object.keys(userForms).length;
|
|
3329
3329
|
});
|
|
3330
3330
|
const selectNumberOfGeneralUserForms = createSelector([selectUserFormMapping], (userForms) => {
|
|
3331
|
-
return Object.values(userForms).filter((form) => !form.component_type
|
|
3331
|
+
return Object.values(userForms).filter((form) => !form.component_type).length;
|
|
3332
3332
|
});
|
|
3333
3333
|
const userFormReducer = userFormSlice.reducer;
|
|
3334
3334
|
const initialState$1 = {
|
|
@@ -10464,9 +10464,9 @@ const FormBrowser = memo(
|
|
|
10464
10464
|
}, [filter, maxResults, ownerFilter]);
|
|
10465
10465
|
const userForms = useAppSelector(selectFilteredUserForms(ownerFilterOptions)) ?? [];
|
|
10466
10466
|
const userFormMapping = useAppSelector(selectUserFormMapping);
|
|
10467
|
-
const attachableUserForms = userForms.filter((form) => !form.component_type
|
|
10467
|
+
const attachableUserForms = userForms.filter((form) => !form.component_type);
|
|
10468
10468
|
const attachableUserFormMapping = Object.values(userFormMapping).filter(
|
|
10469
|
-
(form) => !form.component_type
|
|
10469
|
+
(form) => !form.component_type
|
|
10470
10470
|
);
|
|
10471
10471
|
const handleToggleFavorite = useCallback(
|
|
10472
10472
|
(form) => {
|