diff --git a/packages/js/plugins/ipfs/src/index.ts b/packages/js/plugins/ipfs/src/index.ts index 5b4fe7717c..18bf9a6d82 100644 --- a/packages/js/plugins/ipfs/src/index.ts +++ b/packages/js/plugins/ipfs/src/index.ts @@ -108,13 +108,14 @@ export class IpfsPlugin extends Module { ): Promise { const defaultIpfsClient = createIpfsClient(this.env.provider); - if (!options) { - // Default behavior if no options are provided + if (!options?.fallbackProviders) { + // Default behavior if no fallback providers are provided + // Note that options.timeout is already set by getOptions return await execSimple( operation, defaultIpfsClient, this.config.provider, - 0, + options?.timeout ?? 0, func ); }