Skip to content

Commit

Permalink
Fix strapi config
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Oct 4, 2023
1 parent 3dd2208 commit 2858643
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/webpack/createAppFromStrapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const query = qs.stringify({
'plugins',
'headerMenu',
'footerMenu',
'dataProviders',
'dataProviders.logo',
'radiusSelectValues',
'localizations',
'localizations.logo',
Expand Down Expand Up @@ -173,11 +175,11 @@ module.exports = async function createFromStrapi(dir) {
});
}

for (const provider of appConfig?.providers ?? []) {
for (const provider of appConfig?.dataProviders ?? []) {
newAppConfig.providers.push({
name: provider.name,
href: provider.url,
logo: provider.logo,
logo: provider?.logo?.data?.attributes?.url,
});
}

Expand Down

0 comments on commit 2858643

Please sign in to comment.