File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 6
6
CopilotSetStatus ,
7
7
CopilotSetUpdateReq ,
8
8
} from 'maa-copilot-client'
9
- import { useTranslation } from 'react-i18next'
10
9
import useSWR from 'swr'
11
10
import useSWRInfinite from 'swr/infinite'
12
11
@@ -100,12 +99,11 @@ export function useOperationSetSearch({
100
99
disabled,
101
100
...params
102
101
} : UseOperationSetsParams ) {
103
- const { t } = useTranslation ( )
104
102
if ( ! suspense ) {
105
- throw new Error ( t ( 'apis.operation_set.search_requires_suspense' ) )
103
+ throw new Error ( 'useOperationSetSearch must be used with suspense' )
106
104
}
107
105
if ( disabled ) {
108
- throw new Error ( t ( 'apis.operation_set.search_cannot_be_disabled' ) )
106
+ throw new Error ( 'useOperationSetSearch cannot be disabled' )
109
107
}
110
108
111
109
let id : number | undefined
You can’t perform that action at this time.
0 commit comments