Skip to content

Commit e68bb3a

Browse files
committed
Set external libs count to 0.
1 parent ba2b876 commit e68bb3a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/components/app.jsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -610,15 +610,16 @@ BookService BookRepository Receipt Notification
610610
updateExternalLibCount() {
611611
// Calculate no. of external libs
612612
var noOfExternalLibs = 0;
613-
if (!this.state.currentItem.externalLibs) {
614-
return;
615-
}
616-
noOfExternalLibs += this.state.currentItem.externalLibs.js
617-
.split('\n')
618-
.filter(lib => !!lib).length;
619-
noOfExternalLibs += this.state.currentItem.externalLibs.css
620-
.split('\n')
621-
.filter(lib => !!lib).length;
613+
// There is no external libs
614+
// if (!this.state.currentItem.externalLibs) {
615+
// return;
616+
// }
617+
// noOfExternalLibs += this.state.currentItem.externalLibs.js
618+
// .split('\n')
619+
// .filter(lib => !!lib).length;
620+
// noOfExternalLibs += this.state.currentItem.externalLibs.css
621+
// .split('\n')
622+
// .filter(lib => !!lib).length;
622623
this.setState({
623624
externalLibCount: noOfExternalLibs
624625
});

0 commit comments

Comments
 (0)