lib.generators.toKDL: fix _children not being applied on root level
This commit is contained in:
committed by
Austin Horstman
parent
360620ec9d
commit
3912c447ee
@@ -203,7 +203,15 @@
|
||||
else if vType == "set" then
|
||||
convertAttrsToKDL name value
|
||||
else if vType == "list" then
|
||||
convertListToKDL name value
|
||||
if name == "_children" then
|
||||
concatStringsSep "\n" (
|
||||
map (lib.flip lib.pipe [
|
||||
(mapAttrsToList convertAttributeToKDL)
|
||||
(concatStringsSep "\n")
|
||||
]) value
|
||||
)
|
||||
else
|
||||
convertListToKDL name value
|
||||
else
|
||||
throw ''
|
||||
Cannot convert type `(${typeOf value})` to KDL:
|
||||
|
||||
Reference in New Issue
Block a user