Skip to content

Commit

Permalink
fix(electron+ui): Workspace > In Filesystem (Git Friendly) > Response…
Browse files Browse the repository at this point in the history
…s Implemented
  • Loading branch information
flawiddsouza committed Mar 13, 2024
1 parent a865794 commit 294bcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ const store = createStore({
async deleteCurrentlyActiveResponse(state) {
const responseToDelete = state.requestResponses[state.activeTab._id]
await deleteResponse(state.activeTab.workspaceId, responseToDelete.collectionId, responseToDelete._id)
state.responses[state.activeTab._id] = state.responses[state.activeTab._id].filter(response => response._id !== responseId)
state.responses[state.activeTab._id] = state.responses[state.activeTab._id].filter(response => response._id !== responseToDelete._id)
if(state.responses[state.activeTab._id].length > 0) {
state.requestResponses[state.activeTab._id] = state.responses[state.activeTab._id][0]
state.requestResponseStatus[state.activeTab._id] = 'loaded'
Expand Down

0 comments on commit 294bcf9

Please sign in to comment.