Skip to content

Commit

Permalink
fix graphiql bug
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Nov 20, 2023
1 parent 65bf5bb commit 99ad6f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/graphql/graphiql.html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export function htmlPage({
endpoint: string
headers?: HeadersInit
}) {
const [item] = Object.values(headers)
headers = item === null ? {} : headers
return /* html */ `
<!--
* Copyright (c) 2021 GraphQL Contributors
Expand Down

0 comments on commit 99ad6f7

Please sign in to comment.