Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 297e242

Browse files
committed
filter out the empties
1 parent f218788 commit 297e242

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/template/components/presentation-cell.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ export default class PresentationCell extends React.Component {
7272
}
7373
}).filter(x => x !== null);
7474
}
75-
);
75+
).filter(x => x.length !== 0);
7676

7777
return (
78-
<div className="omg">
78+
<div className="presentational">
7979
<Cell isSelected>
8080
<Input>
8181
<Prompt counter={3} />
@@ -93,16 +93,12 @@ export default class PresentationCell extends React.Component {
9393
</Input>
9494
{outputs && outputs.length > 0 ? <Outputs>{outputs}</Outputs> : null}
9595
</Cell>
96-
<style>{`
97-
.omg {
98-
text-align: left
99-
}
100-
`}</style>
10196
</div>
10297
);
10398
}
10499
}
105100

106101
PresentationCell.defaultProps = {
107-
children: ""
102+
children: "",
103+
kernel: null
108104
};

0 commit comments

Comments
 (0)