Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

refactor(index): us Array.includes

jamesgeorge00720a7094d3388
diff --git a/pages/index.vue b/pages/index.vue
index 003fb233b..db5df7fc1 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -109,7 +109,7 @@
<div
class="blue"
label="Request Body"
- v-if="method === 'POST' || method === 'PUT' || method === 'PATCH'"
+ v-if="['POST', 'PUT', 'PATCH'].includes(method)"
>
<ul>
<li>