Skip to content

Commit

Permalink
fix(customFetch): add flag to get mocked data
Browse files Browse the repository at this point in the history
Flag was not linked to `environment variable`

See: e7b05
  • Loading branch information
marcel-bitfly committed Oct 18, 2024
1 parent 2c2267c commit 8a245cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/composables/useCustomFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function useCustomFetch() {
options.query = {
...options.query,
...query,
is_mocked: true,
is_mocked: useRuntimeConfig().public.isApiMocked ? true : undefined,
}
options.credentials = 'include'
const method = options.method || map.method || 'GET'
Expand Down

0 comments on commit 8a245cd

Please sign in to comment.