[PR #2810] [MERGED] fix: useCodemirror getting non strings as value #4081

Closed
opened 2026-03-17 01:39:03 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2810
Author: @amk-dev
Created: 10/21/2022
Status: Merged
Merged: 10/22/2022
Merged by: @AndrewBastin

Base: mainHead: fix/HOPPSCOTCH-APP-43


📝 Commits (2)

  • 27eaf38 fix: fix useCodemirror getting non strings as value
  • fc3ba62 fix: propogate back the codemirror changes

📊 Changes

2 files changed (+32 additions, -12 deletions)

View changed files

📝 packages/hoppscotch-app/src/components/http/RawBody.vue (+22 -11)
📝 packages/hoppscotch-app/src/composables/codemirror.ts (+10 -1)

📄 Description

Description

fix HOPPSCOTCH-APP-43

useCodemirror composable was expecting a string, but when it is used in RawBody.vue and the content type is multipart/form-data it was getting passed an array which caused an invalid state { contentType: "multipart/formdata", body: "" } for the request body. this PR fixes it


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2810 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 10/21/2022 **Status:** ✅ Merged **Merged:** 10/22/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `fix/HOPPSCOTCH-APP-43` --- ### 📝 Commits (2) - [`27eaf38`](https://github.com/hoppscotch/hoppscotch/commit/27eaf381ceafe1b93afdc54f1904959e2809f660) fix: fix useCodemirror getting non strings as value - [`fc3ba62`](https://github.com/hoppscotch/hoppscotch/commit/fc3ba622faa50ec1343f1535cc3bbbd27438fb66) fix: propogate back the codemirror changes ### 📊 Changes **2 files changed** (+32 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/src/components/http/RawBody.vue` (+22 -11) 📝 `packages/hoppscotch-app/src/composables/codemirror.ts` (+10 -1) </details> ### 📄 Description **Description** fix HOPPSCOTCH-APP-43 ```useCodemirror``` composable was expecting a string, but when it is used in RawBody.vue and the content type is ```multipart/form-data``` it was getting passed an array which caused an invalid state ```{ contentType: "multipart/formdata", body: "" }``` for the request body. this PR fixes it --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:39:03 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4081
No description provided.