fix(mobile): isolate candidate study position
This commit is contained in:
@@ -18,14 +18,14 @@ const normalizeSnippet = (snippet: RawKnowledgeSnippet): KnowledgeSnippet => ({
|
||||
content: snippet.content || snippet.text || ''
|
||||
});
|
||||
|
||||
export const searchKnowledge = async (queryText: string) => {
|
||||
export const searchKnowledge = async (queryText: string, position = getSelectedPosition()) => {
|
||||
const response = await apiRequest<KnowledgeSearchResponse>({
|
||||
url: '/api/knowledge/search',
|
||||
method: 'POST',
|
||||
data: {
|
||||
queryText,
|
||||
category: 'sop',
|
||||
position: getSelectedPosition(),
|
||||
position,
|
||||
limit: 5
|
||||
},
|
||||
timeout: 30000
|
||||
|
||||
Reference in New Issue
Block a user