mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.util): item.resolve for nil item
This commit is contained in:
parent
11cd710317
commit
2ff21b4394
2 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ end
|
|||
|
||||
---@param item snacks.picker.Item
|
||||
function M.resolve(item)
|
||||
if item.resolve then
|
||||
if item and item.resolve then
|
||||
item.resolve(item)
|
||||
item.resolve = nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue