Skip to content

Commit

Permalink
make words consistent in display options (#274)
Browse files Browse the repository at this point in the history
* make words consistent in display options

* Create big-eyes-compete.md
  • Loading branch information
mayakoneval authored Sep 13, 2023
1 parent 82579f1 commit a8ec2cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-eyes-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apollo/explorer": patch
---

make words consistent in display options
4 changes: 2 additions & 2 deletions packages/explorer/src/EmbeddedExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type { JSONObject } from './helpers/types';
type InitialState = {
displayOptions?: {
docsPanelState?: 'open' | 'closed'; // default to 'open',
shouldShowGlobalHeader?: boolean; // default to `true`,
showGlobalHeader?: boolean; // default to `true`,
showHeadersAndEnvVars?: boolean; // default to `false`
theme?: 'dark' | 'light';
};
Expand Down Expand Up @@ -266,7 +266,7 @@ export class EmbeddedExplorer {
showHeadersAndEnvVars: displayOptions?.showHeadersAndEnvVars !== false,
theme: displayOptions?.theme ?? 'dark',
shouldShowGlobalHeader:
displayOptions?.shouldShowGlobalHeader == undefined ? true : false,
displayOptions?.showGlobalHeader == undefined ? true : false,
parentSupportsSubscriptions: !!graphRef,
version: packageJSON.version,
runTelemetry: runTelemetry === undefined ? true : runTelemetry,
Expand Down

0 comments on commit a8ec2cf

Please sign in to comment.