Skip to content

Commit eb5e631

Browse files
committed
Inline var
1 parent f6de2d8 commit eb5e631

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/components/SplitEditor.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,10 @@ export default class SplitEditor extends Component<Props, State> {
7474
});
7575
};
7676

77-
#getDotSrcToRender() {
78-
const s = this.state;
79-
return s.dotSrc || s.lastKnownGoodSrc || "";
80-
}
81-
8277
render() {
8378
const s = this.state;
8479
const p = this.props;
8580

86-
const dotSrc = this.#getDotSrcToRender();
87-
8881
return (
8982
<SplitPane
9083
split="vertical"
@@ -105,7 +98,7 @@ export default class SplitEditor extends Component<Props, State> {
10598
<ErrorBoundary fallback="Could not load graph preview">
10699
<GraphPane
107100
hasErrors={!!(s.errors && s.errors.length > 0)}
108-
dotSrc={dotSrc}
101+
dotSrc={s.dotSrc || s.lastKnownGoodSrc || ""}
109102
engine={p.engine}
110103
format={p.format}
111104
/>

0 commit comments

Comments
 (0)