Skip to content

Commit

Permalink
fix error on closing/reopening pr
Browse files Browse the repository at this point in the history
  • Loading branch information
macovsky committed Nov 12, 2024
1 parent 3f9f945 commit c264a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/octo/ui/writers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function M.write_details(bufnr, issue, update)
table.insert(details, merge_state_vt)
end

if not issue.merged and issue.autoMergeRequest ~= vim.NIL then
if not issue.merged and issue.autoMergeRequest and issue.autoMergeRequest ~= vim.NIL then
local auto_merge_vt = {
{ "Auto-merge: ", "OctoDetailsLabel" },
{ "ENABLED", "OctoStateApproved" },
Expand Down

0 comments on commit c264a33

Please sign in to comment.