Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: show bell for pending tenant invitations (#21778)

buua436f5afffb38b30
diff --git a/web/src/layouts/components/header.tsx b/web/src/layouts/components/header.tsx
index 0b8c18fded..cdea671b14 100644
--- a/web/src/layouts/components/header.tsx
+++ b/web/src/layouts/components/header.tsx
@@ -18,7 +18,7 @@ import {
useListTenant,
} from '@/hooks/use-user-setting-request';
import { cn } from '@/lib/utils';
-import { TenantRole } from '@/pages/user-setting/constants';
+import { TenantMembershipStatus } from '@/pages/user-setting/constants';
import { Routes } from '@/routes';
import {
LucideChevronDown,
@@ -48,7 +48,7 @@ export function Header({
const { data: tenantData } = useListTenant();
const hasNotification = useMemo(
- () => tenantData?.some((x) => x.role === TenantRole.Invite),
+ () => tenantData?.some((x) => x.status === TenantMembershipStatus.Invited),
[tenantData],
);