chore: consistent syntax for data access
This commit is contained in:
parent
2a08c3365a
commit
f20ff5d6ec
4 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ module.exports = async function () {
|
|||
fetchOptions: { headers },
|
||||
})
|
||||
const data = await res
|
||||
const links = data.results.filter((result) => Object.keys(result.tags).includes('share'))
|
||||
const links = data['results'].filter((result) => Object.keys(result.tags).includes('share'))
|
||||
return links.map((link) => {
|
||||
return {
|
||||
title: link['title'],
|
||||
|
|
Reference in a new issue