diff --git a/packages/client/src/pages/api-console.vue b/packages/client/src/pages/api-console.vue
index 16018be712..142a3bee2e 100644
--- a/packages/client/src/pages/api-console.vue
+++ b/packages/client/src/pages/api-console.vue
@@ -67,7 +67,7 @@ export default defineComponent({
 		send() {
 			this.sending = true;
 			const body = JSON5.parse(this.body);
-			os.api(this.endpoint, body, body.i || this.withCredential ? undefined : null).then(res => {
+			os.api(this.endpoint, body, body.i || (this.withCredential ? undefined : null)).then(res => {
 				this.sending = false;
 				this.res = JSON5.stringify(res, null, 2);
 			}, err => {