diff --git a/lua/octo/ui/writers.lua b/lua/octo/ui/writers.lua index 064043ce..fb38690a 100644 --- a/lua/octo/ui/writers.lua +++ b/lua/octo/ui/writers.lua @@ -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 ~= vim.NIL and issue.autoMergeRequest ~= nil then local auto_merge_vt = { { "Auto-merge: ", "OctoDetailsLabel" }, { "ENABLED", "OctoStateApproved" },