Skip to content

Commit 85c9721

Browse files
Updated code for build to pass in netlify CI
1 parent 3bf644b commit 85c9721

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"start": "react-scripts start",
2323
"build": "react-scripts build",
2424
"test": "react-scripts test",
25-
"eject": "react-scripts eject"
25+
"eject": "react-scripts eject",
26+
"build-ci": "CI= react-scripts build cp _redirects build/_redirects"
2627
},
2728
"eslintConfig": {
2829
"extends": "react-app"

src/components/JSON/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const JSONRenderer = (props) => {
2222
const flattened = flattenJson(data, matched);
2323
setList(flattened);
2424
setOrigList(flattened);
25-
}, [matched] );
25+
}, [data,matched] );
2626

2727

2828

src/global/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ export const togglePath = (list, togglePaths, origList) => {
5656
if ( item.path.includes(path) ) { return false; }
5757
return true;
5858
});
59-
6059
});
61-
6260
return output;
6361
}
6462

0 commit comments

Comments
 (0)