Skip to content

Commit caec102

Browse files
committed
rlib: fix reuse of child_wrap routes
1 parent 7150e6e commit caec102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/routelib/routelib.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ local function configure_route_wrap(r, ctx)
405405
local route = r.a
406406
-- wrap the child data into a new table
407407
local children = route.child_wrap
408-
route["child_wrap"] = nil
409408
-- recursion case: another child needs to first transform into children
410409
if (getmetatable(children) == RouteConf) then
411410
dsay("running possible recursive child_wrap child")
@@ -433,6 +432,7 @@ local function configure_route_wrap(r, ctx)
433432

434433
-- reuse the same route config, but once for each child.
435434
rn.a.child = v
435+
rn.a.child_wrap = nil
436436
t[k] = configure_route(rn, ctx)
437437
end
438438

0 commit comments

Comments
 (0)