Skip to content

Commit

Permalink
Merge pull request #679 from mhuggins7278/patch-1
Browse files Browse the repository at this point in the history
fix(pr create): Guard against nil
  • Loading branch information
pwntester authored Nov 28, 2024
2 parents 96409f3 + eef5486 commit 4be5acc
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 @@ -487,7 +487,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 ~= vim.NIL and issue.autoMergeRequest ~= nil then
local auto_merge_vt = {
{ "Auto-merge: ", "OctoDetailsLabel" },
{ "ENABLED", "OctoStateApproved" },
Expand Down

0 comments on commit 4be5acc

Please sign in to comment.