lib: avoid filtering null values to be used as nil
This commit is contained in:
parent
3bd0243744
commit
852c862f05
|
@ -77,8 +77,7 @@ in rec {
|
||||||
else "[${toLuaObject n}] = " + (toLuaObject v))
|
else "[${toLuaObject n}] = " + (toLuaObject v))
|
||||||
(filterAttrs
|
(filterAttrs
|
||||||
(
|
(
|
||||||
_: v:
|
_: v: (toLuaObject v != "{}")
|
||||||
(v != null) && (toLuaObject v != "{}")
|
|
||||||
)
|
)
|
||||||
args)))
|
args)))
|
||||||
+ "}"
|
+ "}"
|
||||||
|
|
Loading…
Reference in New Issue