Skip to content

Commit 5605157

Browse files
Coding with style 😎
1 parent fbd00e4 commit 5605157

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/core/renderHelper.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ function getSlot(slots, key) {
77
}
88

99
function computeChildren(slots) {
10-
const defaultNodes = getSlot(slots, "default");
11-
const header = getSlot(slots, "header");
12-
const footer = getSlot(slots, "footer");
10+
const [header, defaultNodes, footer] = [
11+
"header",
12+
"default",
13+
"footer"
14+
].map(name => getSlot(slots, name));
1315
return {
1416
children: [...header, ...defaultNodes, ...footer],
1517
nodes: {

0 commit comments

Comments
 (0)