Skip to content

Commit

Permalink
Merge pull request #6894 from topcoder-platform/HOTFIX_Contentful_Not…
Browse files Browse the repository at this point in the history
…_Working_June222023

Hotfix contentful not working june222023
  • Loading branch information
jmgasper authored Jun 22, 2023
2 parents 21b3f02 + 7b2d30b commit 61d2269
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ workflows:
branches:
only:
- develop
- HOTFIX_Contentful_Not_Working_June222023
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
2 changes: 1 addition & 1 deletion src/shared/containers/ContentfulLoader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class ContentfulLoader extends React.Component {

/* Some of the required data still pending to load: render a placeholder,
* or nothing. */
if (!data || _.isEmpty(Object.values(data.entries.items))) {
if (!data) {
return _.isFunction(Placeholder) ? <Placeholder /> : Placeholder;
}

Expand Down

0 comments on commit 61d2269

Please sign in to comment.