Skip to content

Commit

Permalink
Добавляет вывод практики и ответов без статей (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
igsekor authored Aug 30, 2023
1 parent 4459c77 commit f5a523a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/person.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ module.exports = {
const docsCategories = Object.keys(docsByPerson[personId])
const answersCategories = Object.keys(practicesByPerson[personId])
return answersCategories.filter((a) => !docsCategories.includes(a))
} else if (!docsByPerson[personId] && practicesByPerson[personId]) {
return Object.keys(practicesByPerson[personId])
} else {
return false
}
Expand All @@ -118,6 +120,8 @@ module.exports = {
const docsCategories = Object.keys(docsByPerson[personId])
const answersCategories = Object.keys(answersByPerson[personId])
return answersCategories.filter((a) => !docsCategories.includes(a))
} else if (!docsByPerson[personId] && answersByPerson[personId]) {
return Object.keys(answersByPerson[personId])
} else {
return false
}
Expand Down

0 comments on commit f5a523a

Please sign in to comment.