不要怂,就是干,撸起袖子干!

Commit ea09cb26 by Overlook Motel

prevent creation of empty arrays of includes

1 parent 7032288e
Showing with 1 additions and 0 deletions
......@@ -1593,6 +1593,7 @@ module.exports = (function() {
// run recursively if nested
if (nested) {
addAllIncludes(model, thisInclude.include)
if (thisInclude.include.length == 0) delete thisInclude.include
}
})
used.pop()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!