Skip to content

Commit 3439aed

Browse files
committed
fix: correct type handling for debug query parameter in toggleDebug function
1 parent 75d5e98 commit 3439aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/appbar/RightButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function toggleDebug() {
8181
const router = useRouter()
8282
8383
const query = { ...route.query }
84-
query.debug = /true|on|yes|1/i.test(query.debug) ? 0 : 1
84+
query.debug = /true|on|yes|1/i.test(query.debug as string) ? '0' : '1'
8585
8686
await router.replace({
8787
query,

0 commit comments

Comments
 (0)