diff --git a/packages/ipfs-http-gateway/src/index.js b/packages/ipfs-http-gateway/src/index.js index 8a69ef5ecc..c45294fc7d 100644 --- a/packages/ipfs-http-gateway/src/index.js +++ b/packages/ipfs-http-gateway/src/index.js @@ -72,7 +72,7 @@ export class HttpGateway { // @ts-ignore TODO: move config typedefs to repo const config = await ipfs.config.getAll() const addresses = config.Addresses || { Swarm: [], Gateway: [] } - const gatewayAddrs = addresses?.Gateway || [] + const gatewayAddrs = addresses.Gateway || [] this._gatewayServers = await serverCreator(gatewayAddrs, this._createGatewayServer, ipfs)