diff --git a/packages/console/src/components/AuditLogTable/components/ApplicationSelector/index.tsx b/packages/console/src/components/AuditLogTable/components/ApplicationSelector/index.tsx index 634762720..d8dcdfb5b 100644 --- a/packages/console/src/components/AuditLogTable/components/ApplicationSelector/index.tsx +++ b/packages/console/src/components/AuditLogTable/components/ApplicationSelector/index.tsx @@ -1,8 +1,12 @@ import type { Application } from '@logto/schemas'; -import { adminConsoleApplicationId } from '@logto/schemas'; +import { adminConsoleApplicationId, adminTenantId } from '@logto/schemas'; +import { conditional } from '@silverhand/essentials'; +import { useContext } from 'react'; import { useTranslation } from 'react-i18next'; import useSWR from 'swr'; +import { isCloud } from '@/consts/env'; +import { TenantsContext } from '@/contexts/TenantsProvider'; import Select from '@/ds-components/Select'; type Props = { @@ -12,6 +16,7 @@ type Props = { function ApplicationSelector({ value, onChange }: Props) { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); + const { currentTenantId } = useContext(TenantsContext); const { data } = useSWR('api/applications'); const options = data?.map(({ id, name }) => ({ @@ -23,7 +28,15 @@ function ApplicationSelector({ value, onChange }: Props) {