Skip to content

Commit

Permalink
bugfix: dashboard frontend ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed May 14, 2024
1 parent 7a974b8 commit 85c9e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard/src/components/NewDatasetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ export const NewDatasetModal = (props: NewDatasetModalProps) => {
availableEmbeddingModels.find(
(model) =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
model.dimension ===
serverConfig().EMBEDDING_SIZE,
model.id ===
serverConfig().EMBEDDING_MODEL_NAME,
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
)?.name ?? availableEmbeddingModels[0].name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,7 @@ export const ServerSettingsForm = () => {
class="col-span-2 block w-full rounded-md border-[0.5px] border-neutral-300 bg-white px-3 py-1.5 shadow-sm placeholder:text-neutral-400 focus:outline-magenta-500 sm:text-sm sm:leading-6"
value={
availableEmbeddingModels.find(
(model) =>
model.dimension === serverConfig().EMBEDDING_SIZE,
(model) => model.id === serverConfig().EMBEDDING_MODEL_NAME,
)?.name ?? availableEmbeddingModels[0].name
}
>
Expand Down

0 comments on commit 85c9e30

Please sign in to comment.