diff --git a/src/link/persisted-queries/index.ts b/src/link/persisted-queries/index.ts index e631098652d..44095da1b63 100644 --- a/src/link/persisted-queries/index.ts +++ b/src/link/persisted-queries/index.ts @@ -158,7 +158,7 @@ export const createPersistedQueryLink = ( defaultCacheSizes["PersistedQueryLink.persistedQueryHashes"] ); } - let hash = hashesByQuery.get(query)!; + let hash = hashesByQuery.get(query); if (!hash) hashesByQuery.set(query, (hash = getHashPromise(query))); return hash; }