Skip to content

Commit

Permalink
fix build/ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benawad committed Aug 25, 2020
1 parent 5d857b8 commit 3ba45c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/utils/useGetPostFromUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useGetIntId } from "./useGetIntId";
export const useGetPostFromUrl = () => {
const intId = useGetIntId();
return usePostQuery({
pause: intId === -1,
skip: intId === -1,
variables: {
id: intId,
},
Expand Down
5 changes: 3 additions & 2 deletions web/src/utils/withApollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ const createClient = (ctx: NextPageContext) =>
credentials: "include",
headers: {
cookie:
(typeof window === "undefined" ? ctx.req?.headers.cookie : undefined) ||
"",
(typeof window === "undefined"
? ctx?.req?.headers.cookie
: undefined) || "",
},
cache: new InMemoryCache({
typePolicies: {
Expand Down

0 comments on commit 3ba45c3

Please sign in to comment.