Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/dashboard/Data/ApiConsole/GraphQLConsole.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import styles from 'dashboard/Data/ApiConsole/ApiConsole.scss';

export default class GraphQLConsole extends Component {
render() {
const { applicationId, graphQLServerURL, masterKey } = this.context.currentApp;
const { applicationId, clientKey, graphQLServerURL, masterKey } = this.context.currentApp;
let content;
if (!graphQLServerURL) {
content = (
Expand All @@ -32,6 +32,7 @@ export default class GraphQLConsole extends Component {
} else {
const headers = {
'X-Parse-Application-Id': applicationId,
'X-Parse-Client-Key': clientKey,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The client key may be not available. Can you please check and only add the header in the case it exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

'X-Parse-Master-Key': masterKey
}
content = (
Expand Down