Skip to content

Commit

Permalink
fix: default to _self instead of _blank
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Dec 19, 2024
1 parent 3775746 commit d13493e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/createAppFromStrapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ module.exports = function createFromStrapi(dir) {
return {
name: cat['name'],
href: cat['href'],
target: cat['target'] || '_blank',
target: cat['target'] || '_self',
image:
matchingCategory?.['image']?.['data']?.['attributes']?.['url'],
subcategories: cat['subcategories'].map((sub) => ({
name: sub['name'],
href: sub['href'],
target: sub['target'] || '_blank',
target: sub['target'] || '_self',
query: sub['query'],
queryType: sub['queryType'],
})),
Expand All @@ -265,12 +265,12 @@ module.exports = function createFromStrapi(dir) {
{
name: category['name'],
href: category['href'],
target: category['target'] || '_blank',
target: category['target'] || '_self',
image: category['image']?.['data']?.['attributes']?.['url'],
subcategories: category['subcategories'].map((sub) => ({
name: sub['name'],
href: sub['href'],
target: sub['target'] || '_blank',
target: sub['target'] || '_self',
query: sub['query'],
queryType: sub['queryType'],
})),
Expand Down

0 comments on commit d13493e

Please sign in to comment.