Skip to content

Commit b4750ed

Browse files
committed
chore: fix typos
1 parent 7211492 commit b4750ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/runtime/composables/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const shouldUseClientDB = () => {
5252
if (Object.prototype.hasOwnProperty.call(query, 'preview') && !query.preview) {
5353
return false
5454
}
55-
// Disable clientDB when preview mode is disabled
55+
// Enable clientDB when preview mode is enabled
5656
if (query.preview || useCookie('previewToken').value) {
5757
return true
5858
}

src/runtime/utils/query.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const encodeQueryParams = (params: QueryBuilderParams) => {
2121
return chunks.join('/')
2222
}
2323

24-
export const decodeQuryParams = (encoded: string) => {
24+
export const decodeQueryParams = (encoded: string) => {
2525
// remove chunks
2626
encoded = encoded.replace(/\//g, '')
2727

@@ -36,7 +36,7 @@ const memory: Record<string, QueryBuilderParams> = {}
3636
export const getContentQuery = (event: H3Event): QueryBuilderParams => {
3737
const { params } = event.context.params || {}
3838
if (params) {
39-
return decodeQuryParams(params.replace(/.json$/, ''))
39+
return decodeQueryParams(params.replace(/.json$/, ''))
4040
}
4141

4242
const qid = event.context.params.qid?.replace(/.json$/, '')

0 commit comments

Comments
 (0)