File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ function protobufToJson(buffer) {
217
217
}
218
218
219
219
for ( const extensionData in json . extensionData ) {
220
- newJson . extensionData [ extensionData ] = JSON . parse ( json . extensionData [ extensionData ] ) ;
220
+ newJson . extensionData [ extensionData ] = json . extensionData [ extensionData ] ;
221
221
}
222
222
223
223
for ( const extensionURL in json . extensionURLs ) {
Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) {
105
105
if (
106
106
typeof rawData . accepted === 'boolean'
107
107
|| typeof rawData . removedsoft === 'boolean'
108
- || rawData . remix > 0 // checks isRemix and remixId existing at the same time
108
+ || String ( rawData . remix ) !== '0' // checks isRemix and remixId existing at the same time
109
109
|| typeof rawData . tooLarge === 'boolean'
110
110
|| authorName
111
111
) {
112
112
this . props . onSetExtraProjectInfo (
113
113
rawData . public && ! rawData . softRejected ,
114
- rawData . remix > 0 ,
115
- Number ( rawData . remix ) ,
114
+ String ( rawData . remix ) !== '0' ,
115
+ String ( rawData . remix ) ,
116
116
false ,
117
117
authorName ,
118
118
new Date ( rawData . lastUpdate ) ,
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ Interface.propTypes = {
503
503
extraProjectInfo : PropTypes . shape ( {
504
504
accepted : PropTypes . bool ,
505
505
isRemix : PropTypes . bool ,
506
- remixId : PropTypes . number ,
506
+ remixId : PropTypes . string ,
507
507
tooLarge : PropTypes . bool ,
508
508
author : PropTypes . string ,
509
509
releaseDate : PropTypes . shape ( Date ) ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const initialState = {
48
48
extraProjectInfo : {
49
49
accepted : true ,
50
50
isRemix : false ,
51
- remixId : 0 ,
51
+ remixId : '0' ,
52
52
tooLarge : false ,
53
53
author : '' ,
54
54
releaseDate : new Date ( ) ,
You can’t perform that action at this time.
0 commit comments