mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-04 20:20:37 +02:00
Fix SwitchModelModal
This commit is contained in:
parent
2138c0b69d
commit
159453f8d7
@ -146,12 +146,12 @@ export default async function Page({
|
||||
<InstantSSRAutoRefresh />
|
||||
<ApiKeyModal />
|
||||
|
||||
{connectors.length === 0 && (
|
||||
{connectors.length === 0 ? (
|
||||
<WelcomeModal embeddingModelName={embeddingModelName} />
|
||||
)}
|
||||
|
||||
{!checkModelNameIsValid(embeddingModelName) && (
|
||||
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
||||
) : (
|
||||
!checkModelNameIsValid(embeddingModelName) && (
|
||||
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
||||
)
|
||||
)}
|
||||
|
||||
<ChatLayout
|
||||
|
@ -128,12 +128,12 @@ export default async function Home() {
|
||||
<ApiKeyModal />
|
||||
<InstantSSRAutoRefresh />
|
||||
|
||||
{connectors.length === 0 && connectorsResponse?.ok && (
|
||||
{connectors.length === 0 ? (
|
||||
<WelcomeModal embeddingModelName={embeddingModelName} />
|
||||
)}
|
||||
|
||||
{!checkModelNameIsValid(embeddingModelName) && (
|
||||
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
||||
) : (
|
||||
!checkModelNameIsValid(embeddingModelName) && (
|
||||
<SwitchModelModal embeddingModelName={embeddingModelName} />
|
||||
)
|
||||
)}
|
||||
|
||||
<div className="px-24 pt-10 flex flex-col items-center min-h-screen">
|
||||
|
Loading…
x
Reference in New Issue
Block a user