mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-11 05:19:52 +02:00
quick nits
This commit is contained in:
parent
680ab9ea30
commit
60355b84c1
@ -708,11 +708,12 @@ async def optional_user(
|
||||
|
||||
async def double_check_user(
|
||||
user: User | None,
|
||||
optional: bool = DISABLE_AUTH,
|
||||
include_expired: bool = False,
|
||||
allow_anonymous_access: bool = False,
|
||||
) -> User | None:
|
||||
if DISABLE_AUTH:
|
||||
return None
|
||||
if optional:
|
||||
return user
|
||||
|
||||
if user is not None:
|
||||
# If user attempted to authenticate, verify them, do not default
|
||||
|
@ -183,15 +183,7 @@ export function ChatPage({
|
||||
|
||||
const [userSettingsToggled, setUserSettingsToggled] = useState(false);
|
||||
|
||||
const {
|
||||
assistants: availableAssistants,
|
||||
finalAssistants,
|
||||
hiddenAssistants,
|
||||
visibleAssistants,
|
||||
} = useAssistants();
|
||||
console.log("visibleAssistants", visibleAssistants);
|
||||
console.log("availableAssistants", availableAssistants);
|
||||
console.log("hiddenAssistants", hiddenAssistants);
|
||||
const { assistants: availableAssistants, finalAssistants } = useAssistants();
|
||||
|
||||
const [showApiKeyModal, setShowApiKeyModal] = useState(
|
||||
!shouldShowWelcomeModal
|
||||
|
@ -63,7 +63,6 @@ export default async function RootLayout({
|
||||
getCurrentUserSS(),
|
||||
]);
|
||||
|
||||
console.log("assistantsData", assistantsData);
|
||||
const productGating =
|
||||
combinedSettings?.settings.product_gating ?? GatingType.NONE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user