Commit b3062de0 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Pagination: fix a potential exception with new deps

parent 09cc5be7
...@@ -74,6 +74,8 @@ export default { ...@@ -74,6 +74,8 @@ export default {
const rightWrapper = <div class="el-pagination__rightwrapper"></div>; const rightWrapper = <div class="el-pagination__rightwrapper"></div>;
let haveRightWrapper = false; let haveRightWrapper = false;
template.children = template.children || [];
rightWrapper.children = rightWrapper.children || [];
components.forEach(compo => { components.forEach(compo => {
if (compo === '->') { if (compo === '->') {
haveRightWrapper = true; haveRightWrapper = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment