Skip to content

Commit

Permalink
fix source skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Dec 7, 2024
1 parent 1b69b9e commit 3295954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ async function processInitForm(
type: 'input',
name: 'source',
message: sourceMessage,
skip: () => !isComposedSubgraph,
skip: () =>
initFromExample !== undefined || !protocolInstance.hasContract() || isSubstreams,
initial: initContract,
validate: async (value: string) => {
if (isComposedSubgraph) {
Expand Down

0 comments on commit 3295954

Please sign in to comment.