lib: avoid filtering null values to be used as nil

This commit is contained in:
Frothy 2024-04-26 20:25:44 -04:00 committed by diniamo
parent 954470581e
commit 506b29c726

View file

@ -79,7 +79,10 @@ in rec {
then toLuaObject v then toLuaObject v
else "[${toLuaObject n}] = " + (toLuaObject v)) else "[${toLuaObject n}] = " + (toLuaObject v))
(filterAttrs (filterAttrs
(_: v: v != null) (
_: v:
(v != null) && (toLuaObject v != "{}")
)
args))) args)))
+ "}" + "}"
else if isList args else if isList args