From ff35d73547bb4f5b396c4bc92bd58a08e4da60b9 Mon Sep 17 00:00:00 2001 From: Umesh Kumar <166806589+TangoBeeAkto@users.noreply.github.com> Date: Tue, 31 Dec 2024 09:28:24 +0530 Subject: [PATCH] clean code --- .../web/src/apps/dashboard/components/shared/DropdownSearch.jsx | 2 +- .../dashboard/pages/observe/api_collections/ApiGroupModal.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx index 1f5809c392..37bbc3c538 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/components/shared/DropdownSearch.jsx @@ -70,7 +70,7 @@ function DropdownSearch(props) { setTimeout(() => { if (value === '' && selectedOptions.length === 0) { const options = deselectedOptions.slice(0, defaultSliceValue); - const title = options.length >= defaultSliceValue + const title = options.length > defaultSliceValue ? `Showing ${options.length} result${func.addPlurality(options.length)} only. (type more to refine results)` : "Showing all results"; const nestedOptions = [{ diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiGroupModal.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiGroupModal.jsx index 3cf756e12e..d809345cb4 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiGroupModal.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/observe/api_collections/ApiGroupModal.jsx @@ -67,7 +67,7 @@ function ApiGroupModal(props){ label="Select API group" placeholder="Select API group" optionsList={ - allCollections.filter((x) => { return (x.type === 'API_GROUP' && x.deactivated === false) }).map((x) => { + activatedGroupCollections.map((x) => { return { label: x.displayName, value: x.displayName