File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,6 @@ export const parseRoundApplicationMetadata = (
56
56
} ;
57
57
}
58
58
59
- // const [major, minor, patch] = object.version.split(".").map(Number);
60
- //
61
59
metadata . applicationSchema . questions =
62
60
metadata . applicationSchema . questions . map (
63
61
( q : any ) : RoundApplicationQuestion => ( {
@@ -71,13 +69,17 @@ export const parseRoundApplicationMetadata = (
71
69
} )
72
70
) ;
73
71
72
+ const maxId = Math . max (
73
+ ...metadata . applicationSchema . questions . map ( ( q ) => q . id )
74
+ ) ;
75
+
74
76
metadata . applicationSchema . questions = [
75
77
{
76
- id : metadata . applicationSchema . questions . length ,
78
+ id : maxId + 1 ,
77
79
type : "project" ,
78
80
} ,
79
81
{
80
- id : metadata . applicationSchema . questions . length + 1 ,
82
+ id : maxId + 2 ,
81
83
type : "recipient" ,
82
84
} ,
83
85
...metadata . applicationSchema . questions ,
Original file line number Diff line number Diff line change 1
1
REACT_APP_GRANTS_STACK_SEARCH_API_BASE_URL = " https://gitcoin-search-dev.fly.dev"
2
- REACT_APP_ALLO_API_URL = " https://grants-stack-indexer-v2.gitcoin.co/graphql"
3
2
REACT_APP_PINATA_JWT = token-test
4
3
REACT_APP_PINATA_BASE_URL = http://localhost
5
4
REACT_APP_PASSPORT_API_KEY = " test-key"
You can’t perform that action at this time.
0 commit comments