Skip to content

Commit

Permalink
update: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 27, 2024
1 parent 35c1bc3 commit bbb00dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ee/tabby-ui/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@/lib/hooks/use-server-info'
import { setThreadsPageNo } from '@/lib/stores/answer-engine-store'
import {
updateSelectedCodeSourceId,
updateSelectedRepoSourceId,
updateSelectedModel
} from '@/lib/stores/chat-actions'
import {
Expand Down Expand Up @@ -91,7 +91,7 @@ function MainPanel() {
}

const onSelectedRepo = (sourceId: string | undefined) => {
updateSelectedCodeSourceId(sourceId)
updateSelectedRepoSourceId(sourceId)
}

const onSearch = (question: string, ctx?: ThreadRunContexts) => {
Expand Down
4 changes: 2 additions & 2 deletions ee/tabby-ui/app/search/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import useRouterStuff from '@/lib/hooks/use-router-stuff'
import { useIsChatEnabled } from '@/lib/hooks/use-server-info'
import { useThreadRun } from '@/lib/hooks/use-thread-run'
import {
updateSelectedCodeSourceId,
updateSelectedRepoSourceId,
updateSelectedModel
} from '@/lib/stores/chat-actions'
import { clearHomeScrollPosition } from '@/lib/stores/scroll-store'
Expand Down Expand Up @@ -690,7 +690,7 @@ export function Search() {
}

const onSelectedRepo = (sourceId: string | undefined) => {
updateSelectedCodeSourceId(sourceId)
updateSelectedRepoSourceId(sourceId)
}

const formatedThreadError: ExtendedCombinedError | undefined = useMemo(() => {
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/lib/stores/chat-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const updateSelectedModel = (model: string | undefined) => {
set(() => ({ selectedModel: model }))
}

export const updateSelectedCodeSourceId = (sourceId: string | undefined) => {
export const updateSelectedRepoSourceId = (sourceId: string | undefined) => {
set(() => ({ selectedRepoSourceId: sourceId }))
}

Expand Down

0 comments on commit bbb00dd

Please sign in to comment.