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

Commit 9f718a4

Browse files
darkwingjasonLaster
authored andcommitted
Fix message and formatting of Outline when no functions (#5683)
1 parent 0b4a946 commit 9f718a4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/PrimaryPanes/Outline.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
position: relative;
1212
}
1313

14-
.outline .outline-pane-info {
14+
.outline-pane-info {
1515
width: 100%;
1616
font-style: italic;
1717
text-align: center;

src/components/PrimaryPanes/Outline.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ export class Outline extends Component<Props> {
137137
}
138138

139139
render() {
140-
const { symbols } = this.props;
140+
const { symbols, selectedSource } = this.props;
141+
if (!selectedSource) {
142+
return this.renderPlaceholder();
143+
}
141144
if (!symbols || symbols.loading) {
142145
return this.renderLoading();
143146
}

0 commit comments

Comments
 (0)