diff --git a/ngui/ui/src/components/CloudCostComparisonTable/columns/flavors.js b/ngui/ui/src/components/CloudCostComparisonTable/columns/flavors.js index f98670836..8141c133d 100644 --- a/ngui/ui/src/components/CloudCostComparisonTable/columns/flavors.js +++ b/ngui/ui/src/components/CloudCostComparisonTable/columns/flavors.js @@ -12,7 +12,6 @@ import QuestionMark from "components/QuestionMark"; import TextWithDataTestId from "components/TextWithDataTestId"; import Tooltip from "components/Tooltip"; import { useIsSizeSelected, useSelectionActions } from "reducers/cloudCostComparisonSelectedSizes/hooks"; -import { isLastItem } from "utils/arrays"; import { AWS_CNR, AZURE_CNR, FORMATTED_MONEY_TYPES, NEBIUS } from "utils/constants"; const Flavor = ({ flavor }) => { @@ -82,11 +81,13 @@ const Flavor = ({ flavor }) => { const FlavorsCell = ({ flavors }) => ( ( + items={flavors.map((flavor) => ( diff --git a/ngui/ui/src/hooks/useOptscaleRecommendations.js b/ngui/ui/src/hooks/useOptscaleRecommendations.js index 7197ca127..1b1187a71 100644 --- a/ngui/ui/src/hooks/useOptscaleRecommendations.js +++ b/ngui/ui/src/hooks/useOptscaleRecommendations.js @@ -53,14 +53,10 @@ export const useOptscaleRecommendations = () => { PublicS3Buckets, ObsoleteImages, AbandonedImages, - AbandonedNebiusS3Buckets, - CvocAgreementOpportunities + CvocAgreementOpportunities, + ...(isNebiusConnectionEnabled ? [AbandonedNebiusS3Buckets, NebiusMigration] : []) ]; - if (isNebiusConnectionEnabled) { - recommendations.push(NebiusMigration); - } - return Object.fromEntries(recommendations.map((Rec) => [new Rec().type, Rec])); }, [isNebiusConnectionEnabled]); };