Skip to content

Commit 78a4a90

Browse files
committed
get version from network subgraph
1 parent 5888e50 commit 78a4a90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

website/src/routes/publish.lazy.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ function DeploySubgraph({
264264
if (metadata.displayName) {
265265
form.setValue('displayName', metadata.displayName);
266266
}
267+
268+
if (data.subgraph.versions?.length > 0) {
269+
const version = data.subgraph.versions[data.subgraph.versions.length - 1];
270+
form.setValue('versionLabel', version.metadata?.label ?? '');
271+
}
267272
}
268273

269274
return data;

0 commit comments

Comments
 (0)