refactor: format
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = async (ctx) => {
|
||||
},
|
||||
headers: getCustomRequestHeaders(),
|
||||
});
|
||||
const books = response.data.data || {};
|
||||
const books = response.data.data || [];
|
||||
|
||||
const item = books
|
||||
.filter((item) => item.type === 'book')
|
||||
|
||||
Reference in New Issue
Block a user