fix(picker.util): item.resolve for nil item

This commit is contained in:
Folke Lemaitre 2025-01-20 00:11:34 +01:00
parent 11cd710317
commit 2ff21b4394
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 1 additions and 1 deletions

View file

@ -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