Skip to content

Commit

Permalink
Use optional chaining for experimeental image opts
Browse files Browse the repository at this point in the history
  • Loading branch information
atcastle committed Mar 10, 2022
1 parent a000df1 commit d48b36a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/next/client/image.tsx
Expand Up @@ -11,8 +11,7 @@ import { ImageConfigContext } from '../shared/lib/image-config-context'
import { warnOnce } from '../shared/lib/utils'
import { normalizePathTrailingSlash } from './normalize-trailing-slash'

const experimentalLayoutRaw = (process.env.__NEXT_IMAGE_OPTS as any)
.experimentalLayoutRaw
const experimentalLayoutRaw = (process.env.__NEXT_IMAGE_OPTS as any)?.experimentalLayoutRaw
const configEnv = process.env.__NEXT_IMAGE_OPTS as any as ImageConfigComplete
const loadedImageURLs = new Set<string>()
const allImgs = new Map<
Expand Down

0 comments on commit d48b36a

Please sign in to comment.