From b3062de0d2b8c0b4f89ab44767ca86ef702ce7ee Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Thu, 8 Mar 2018 12:23:04 +0800 Subject: [PATCH] Pagination: fix a potential exception with new deps --- packages/pagination/src/pagination.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/pagination/src/pagination.js b/packages/pagination/src/pagination.js index db386b433..ca839fe03 100644 --- a/packages/pagination/src/pagination.js +++ b/packages/pagination/src/pagination.js @@ -74,6 +74,8 @@ export default { const rightWrapper =
; let haveRightWrapper = false; + template.children = template.children || []; + rightWrapper.children = rightWrapper.children || []; components.forEach(compo => { if (compo === '->') { haveRightWrapper = true;