Skip to content

Commit 9af48d2

Browse files
committed
fixes
1 parent 0605a3d commit 9af48d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/graphql-playground/src/components/Playground/TopBar/TopBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class TopBar extends React.Component<Props, {}> {
4848
</CopyToClipboard>
4949
{this.props.sharing && (
5050
<Share {...this.props.sharing}>
51-
<Button onClick={this.props.onClickShare}>Share Playground</Button>
51+
<Button>Share Playground</Button>
5252
</Share>
5353
)}
5454
</TopBarWrapper>

packages/graphql-playground/src/components/PlaygroundStorage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export default class PlaygroundStorage {
3030
}
3131
function mapHeaders(session) {
3232
let headers = session.headers
33+
if (!headers) {
34+
headers = ''
35+
}
3336
if (Array.isArray(headers)) {
3437
headers = convertArray(headers)
3538
}

0 commit comments

Comments
 (0)