File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
containers/Tenant/Query/QueryEditor
store/reducers/codeAssist Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ export function useEditorOptions() {
3838
3939export function useCodeAssist ( ) {
4040 const [ sendCodeAssistPrompt ] = codeAssistApi . useLazyGetCodeAssistSuggestionsQuery ( ) ;
41- const [ acceptSuggestion ] = codeAssistApi . useLazyAcceptSuggestionQuery ( ) ;
42- const [ discardSuggestion ] = codeAssistApi . useLazyDiscardSuggestionQuery ( ) ;
43- const [ ignoreSuggestion ] = codeAssistApi . useLazyIgnoreSuggestionQuery ( ) ;
44- const [ sendUserQueriesData ] = codeAssistApi . useLazySendUserQueriesDataQuery ( ) ;
41+ const [ acceptSuggestion ] = codeAssistApi . useAcceptSuggestionMutation ( ) ;
42+ const [ discardSuggestion ] = codeAssistApi . useDiscardSuggestionMutation ( ) ;
43+ const [ ignoreSuggestion ] = codeAssistApi . useIgnoreSuggestionMutation ( ) ;
44+ const [ sendUserQueriesData ] = codeAssistApi . useSendUserQueriesDataMutation ( ) ;
4545
4646 const getCodeAssistSuggestions = React . useCallback (
4747 async ( promptFiles : PromptFile [ ] ) => {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {api} from '../api';
1111
1212export const codeAssistApi = api . injectEndpoints ( {
1313 endpoints : ( builder ) => ( {
14- getCodeAssistSuggestions : builder . mutation < Suggestions , PromptFile [ ] > ( {
14+ getCodeAssistSuggestions : builder . query < Suggestions , PromptFile [ ] > ( {
1515 queryFn : async ( promptFiles : PromptFile [ ] ) => {
1616 try {
1717 if ( window . api . codeAssist ) {
You can’t perform that action at this time.
0 commit comments