File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ async function processInitForm(
835835 await promptManager . executeInteractive ( ) ;
836836
837837 // Validate network matches if loading from IPFS
838- if ( ipfsNode && source && source . startsWith ( 'Qm' ) ) {
838+ if ( ipfsNode && source ? .startsWith ( 'Qm' ) ) {
839839 const ipfs = createIpfsClient ( ipfsNode ) ;
840840 try {
841841 const { valid, error } = await validateSubgraphNetworkMatch ( ipfs , source ! , network . id ) ;
@@ -844,7 +844,7 @@ async function processInitForm(
844844 }
845845 } catch ( e ) {
846846 if ( e instanceof Error ) {
847- print . error ( `Failed to validate subgraph network: ${ e . message } ` ) ;
847+ print . error ( `Failed to validate subgraph network: ${ e ? .message } ` ) ;
848848 }
849849 throw e ;
850850 }
You can’t perform that action at this time.
0 commit comments