Skip to content

Commit

Permalink
CBdL ISBN: Fix error on non-ISBN searches
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Sep 26, 2023
1 parent 113b77b commit 394f5b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Camara Brasileira do Livro ISBN.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"priority": 98,
"inRepository": true,
"translatorType": 8,
"lastUpdated": "2023-09-07 18:56:42"
"lastUpdated": "2023-09-26 16:11:18"
}

/*
Expand Down Expand Up @@ -193,7 +193,9 @@ function cleanData(items) {
if (typeof item === 'string') {
item = { ISBN: item };
}
item.ISBN = ZU.cleanISBN(item.ISBN);
if (item.ISBN) {
item.ISBN = ZU.cleanISBN(item.ISBN);
}
return item;
})
.filter(item => item.ISBN && (
Expand Down

0 comments on commit 394f5b7

Please sign in to comment.