Skip to content

Commit 2071474

Browse files
committed
Remove unneeded checks
1 parent a875c46 commit 2071474

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/editor/index.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,22 +258,18 @@ class FakeEditor extends React.Component<any, FakeEditorState> {
258258
'-active': activeTab === 1,
259259
})}
260260
>
261-
{this.state.schema && (
262-
<GraphiQL fetcher={(e) => this.graphQLFetcher(e)} schema={this.state.schema} />
263-
)}
261+
<GraphiQL fetcher={(e) => this.graphQLFetcher(e)} schema={schema} />
264262
</div>
265263
<div
266264
className={classNames('tab-content', {
267265
'-active': activeTab === 2,
268266
})}
269267
>
270-
{this.state.schema && (
271-
<Voyager
272-
introspection={(e) => this.graphQLFetcher({ query: e })}
273-
hideSettings={activeTab !== 2}
274-
workerURI="/voyager.worker.js"
275-
/>
276-
)}
268+
<Voyager
269+
introspection={(e) => this.graphQLFetcher({ query: e })}
270+
hideSettings={activeTab !== 2}
271+
workerURI="/voyager.worker.js"
272+
/>
277273
</div>
278274
</div>
279275
</div>

0 commit comments

Comments
 (0)