@overmap-ai/core 1.0.38-component-fields.11 → 1.0.38-component-fields.12
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
|
@@ -10433,7 +10433,7 @@ const FormBrowser = memo(
|
|
|
10433
10433
|
const handleChange = useCallback((e) => {
|
|
10434
10434
|
setFilter(e.currentTarget.value);
|
|
10435
10435
|
}, []);
|
|
10436
|
-
const numberOfForms = useAppSelector(selectNumberOfUserForms)
|
|
10436
|
+
const numberOfForms = useAppSelector(selectNumberOfUserForms) - (userForms.length - attachableUserForms.length);
|
|
10437
10437
|
const numberOfHiddenForms = numberOfForms - attachableUserForms.length;
|
|
10438
10438
|
const overflowMessage = attachableUserForms.length == maxResults && numberOfHiddenForms > 0 ? `Only the first ${maxResults} results are shown (${numberOfHiddenForms} hidden)` : numberOfHiddenForms > 0 && `${numberOfHiddenForms} hidden forms`;
|
|
10439
10439
|
return /* @__PURE__ */ jsxs(Flex, { ref, direction: "column", gap: "2", children: [
|