Skip to content

Commit

Permalink
fix: space filter undefinedp tag
Browse files Browse the repository at this point in the history
  • Loading branch information
PengYYYYY committed Jul 4, 2022
1 parent 9538a73 commit ae18c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/space/space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default defineComponent({
COMPONENT_NAME, spaceClassNames, renderStyle, slots, separator,
} = this;

const children = slots.default();
const children = slots.default().filter((child) => child.tag !== undefined);
const childCount = children.length;

const renderChildren = () => children.map((child, index) => {
Expand Down

0 comments on commit ae18c4d

Please sign in to comment.