Skip to content

Commit

Permalink
Remove unneeded checks
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 31, 2020
1 parent a875c46 commit 2071474
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,22 +258,18 @@ class FakeEditor extends React.Component<any, FakeEditorState> {
'-active': activeTab === 1,
})}
>
{this.state.schema && (
<GraphiQL fetcher={(e) => this.graphQLFetcher(e)} schema={this.state.schema} />
)}
<GraphiQL fetcher={(e) => this.graphQLFetcher(e)} schema={schema} />
</div>
<div
className={classNames('tab-content', {
'-active': activeTab === 2,
})}
>
{this.state.schema && (
<Voyager
introspection={(e) => this.graphQLFetcher({ query: e })}
hideSettings={activeTab !== 2}
workerURI="/voyager.worker.js"
/>
)}
<Voyager
introspection={(e) => this.graphQLFetcher({ query: e })}
hideSettings={activeTab !== 2}
workerURI="/voyager.worker.js"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 2071474

Please sign in to comment.