Lua: fix autocomplete on nonexisting objects

pull/1232/head
Zef Hemel 2025-02-06 20:51:17 +01:00
parent eb788c68ca
commit ee246bb997
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ event.listen {
return return
end end
local options = {} local options = {}
if not currentValue then
return
end
for key, val in pairs(currentValue) do for key, val in pairs(currentValue) do
if string.startswith(key, lastProp) and val then if string.startswith(key, lastProp) and val then
if val.call then if val.call then