Skip to content

Commit

Permalink
Merge pull request #6 from contentstack/staging
Browse files Browse the repository at this point in the history
helper function issue fixed
  • Loading branch information
RohitKini authored May 7, 2023
2 parents 921f0c8 + 137c7ac commit f5492c1
Show file tree
Hide file tree
Showing 2 changed files with 3,474 additions and 3,469 deletions.
4 changes: 2 additions & 2 deletions helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const getComposableHeroGallery = async (entryUrl) => {
],
});

liveEdit && addEditableTags(response[0], "page", true);
liveEdit && addEditableTags(response[0], "superhero_landing_page", true);
return response[0];
};

Expand All @@ -145,7 +145,7 @@ export const getSuperheroGalleryRes = async () => {
export const getDynamicComposableHeroGallery = async () => {
const querryresponse = await axios
.get(
"https://cdn.contentstack.io/v3/content_types/superhero_landing_page/entries?environment=development&locale=en-us&include[]=modular_blocks.super_heroes_gallery.heroes.character&include[]=modular_blocks.dynamic_hero_list&include[]=modular_blocks.super_heroes_gallery_api_.heroes.character&include_branch=false",
"https://cdn.contentstack.io/v3/content_types/superhero_landing_page/entries?environment=development&locale=en-us&include[]=modular_blocks.super_heroes_gallery.heroes&include_branch=false",
{
headers: {
api_key: envConfig.CONTENTSTACK_API_KEY,
Expand Down
Loading

0 comments on commit f5492c1

Please sign in to comment.