lib: avoid filtering null values to be used as nil
This commit is contained in:
parent
4ee562d438
commit
3ceefe8849
|
@ -79,7 +79,10 @@ in rec {
|
|||
then toLuaObject v
|
||||
else "[${toLuaObject n}] = " + (toLuaObject v))
|
||||
(filterAttrs
|
||||
(_: v: v != null)
|
||||
(
|
||||
_: v:
|
||||
(v != null) && (toLuaObject v != "{}")
|
||||
)
|
||||
args)))
|
||||
+ "}"
|
||||
else if isList args
|
||||
|
|
Loading…
Reference in New Issue