Skip to content

Commit e3bba64

Browse files
committed
refactor(useCustomFetch): allow endpoint-specific is_mocked param to override global setting
1 parent af0ac37 commit e3bba64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/composables/useCustomFetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ export function useCustomFetch() {
7777
}
7878

7979
options.query = {
80+
is_mocked: runtimeConfig.public.isApiMocked ? true : undefined,
8081
...options.query,
8182
...query,
82-
is_mocked: runtimeConfig.public.isApiMocked ? true : undefined,
8383
}
8484
options.credentials = 'include'
8585
const method = options.method || map.method || 'GET'

0 commit comments

Comments
 (0)