🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
refactor(web): Fix no-null-render: SpendAlertsSection.tsx (#18235)
Ben Bachemdede7c89e613
diff --git a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsxindex 32c55a4cff..6e34be8a2d 100644--- a/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx+++ b/web/src/ee/features/billing/components/SpendAlerts/SpendAlertsSection.tsx@@ -1,11 +1,8 @@-/* eslint-disable @repo/no-null-render */import { useState } from "react";import { Button } from "@/src/components/ui/button";import { Plus } from "lucide-react";import { SpendAlertsTable } from "./SpendAlertsTable";import { SpendAlertDialog } from "./SpendAlertDialog";-import { useHasOrganizationAccess } from "@/src/features/rbac";-import { useHasEntitlement } from "@/src/features/entitlements";interface SpendAlertsSectionProps {orgId: string;@@ -15,21 +12,6 @@ export function SpendAlertsSection({ orgId }: SpendAlertsSectionProps) {const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false);const [refetchTrigger, setRefetchTrigger] = useState(0);- const hasAccess = useHasOrganizationAccess({- organizationId: orgId,- scope: "langfuseCloudBilling:CRUD",- });-- const hasEntitlement = useHasEntitlement("cloud-spend-alerts");-- if (!hasEntitlement) {- return null;- }-- if (!hasAccess) {- return null;- }-return (<><div className="space-y-2">