Skip to content

Commit

Permalink
Do not override page-industries and page-uses-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Nov 16, 2021
1 parent ca00f11 commit 698809b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/graphgists.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,6 @@ function createGraphGistPage(graphGist) {
// Assign additional attributes on pages

function assignPageAttributes(graphGists, contentCatalog, asciidocConfig) {
const categoryPagesMap = generateCategoryPagesMap(graphGists, contentCatalog)
const allIndustries = Array.from(categoryPagesMap.values()).filter((value) => value.type === 'industry')
const allUseCases = Array.from(categoryPagesMap.values()).filter((value) => value.type === 'use-case')
for (const graphGist of graphGists) {
const page = getById(contentCatalog, {
family: 'page',
Expand All @@ -276,8 +273,6 @@ function assignPageAttributes(graphGists, contentCatalog, asciidocConfig) {
'page-illustration': imageUrl,
'page-uuid': graphGist.uuid,
'page-slug': graphGist.slug,
'page-industries': allIndustries,
'page-use-cases': allUseCases,
'page-browserGuideUrl': `https://guides.neo4j.com/graph-examples/${graphGist.slug}/graph_guide`
}
if (browserGuideAttachment) {
Expand Down

0 comments on commit 698809b

Please sign in to comment.