From 482899219ac1ce5340849149c6e9a0405900030d Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Sat, 8 Jul 2023 14:09:09 -0400 Subject: [PATCH] fix(api): Fix error when calling find() with nil options table --- lua/legendary/ui/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/legendary/ui/init.lua b/lua/legendary/ui/init.lua index 29b8ee66..0b534196 100644 --- a/lua/legendary/ui/init.lua +++ b/lua/legendary/ui/init.lua @@ -22,6 +22,7 @@ local M = {} ---@param context LegendaryEditorContext ---@overload fun(opts:LegendaryFindOpts,context:LegendaryEditorContext) local function select_inner(opts, context, itemlist) + opts = opts or {} if itemlist then Log.trace('Relaunching select UI for an item group') else