Collection: new widget to add book to collection
This commit is contained in:
@@ -36,7 +36,15 @@ function fetchData(searchTerm, authorId) {
|
||||
error.value = null
|
||||
if (searchTerm != null) {
|
||||
const lang = navigator.language.substring(0, 2)
|
||||
getSearchBooks(data, error, searchTerm, lang, forceSearchInventaire.value, limit, offset.value)
|
||||
getSearchBooks(
|
||||
data,
|
||||
error,
|
||||
searchTerm,
|
||||
lang,
|
||||
forceSearchInventaire.value ? 2 : 1,
|
||||
limit,
|
||||
offset.value,
|
||||
)
|
||||
} else if (authorId != null) {
|
||||
getAuthorBooks(data, error, authorId, limit, offset.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user