Skip to content

Commit 99ad6f7

Browse files
committed
fix graphiql bug
1 parent 65bf5bb commit 99ad6f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/graphql/graphiql.html.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export function htmlPage({
66
endpoint: string
77
headers?: HeadersInit
88
}) {
9+
const [item] = Object.values(headers)
10+
headers = item === null ? {} : headers
911
return /* html */ `
1012
<!--
1113
* Copyright (c) 2021 GraphQL Contributors

0 commit comments

Comments
 (0)