Skip to content

Commit 542f038

Browse files
wip
1 parent 516f805 commit 542f038

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/rest-nvim/ui/panes/preset/browser.lua

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ return {
5858
end
5959
-- TODO: render based on body types
6060
local body = state.request.body
61+
if not body then
62+
set_lines(self.bufnr, {})
63+
return
64+
end
6165
if vim.list_contains({ "json", "xml", "raw", "graphql" }, body.__TYPE) then
6266
set_lines(self.bufnr, vim.split(body.data, "\n"))
6367
if body.__TYPE == "graphql" then

0 commit comments

Comments
 (0)