Skip to content

Commit

Permalink
fix: Avoid GraphQL Playground default assignment. (apollographql#1578)
Browse files Browse the repository at this point in the history
Due to a number of other assignments within `createPlaygroundOptions`, the default is still maintained and the `playground` configuration parameter should be entirely optional.
  • Loading branch information
limerickgds authored and rkorrelboom committed Nov 17, 2018
1 parent ece7ec8 commit 93fd53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo-server-core/src/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const defaultPlaygroundOptions = {
};

export function createPlaygroundOptions(
playground: PlaygroundConfig = {},
playground?: PlaygroundConfig,
): PlaygroundRenderPageOptions | undefined {
const isDev = process.env.NODE_ENV !== 'production';
const enabled: boolean =
Expand Down

0 comments on commit 93fd53e

Please sign in to comment.