Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from ellucian-developer/Page-needs-access-to-ca…
Browse files Browse the repository at this point in the history
…rdInfo

Page needs access to cardInfo
  • Loading branch information
ellucianBret authored Jul 14, 2021
2 parents 742543f + 40fbe9b commit 584282f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ellucian/experience-extension-hooks",
"version": "1.0.0",
"version": "1.0.1",
"description": "Useful hooks to access the Extension properties using React Contexts",
"license": "UNLICENSED",
"main": "index",
Expand Down
2 changes: 1 addition & 1 deletion src/components/extension-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export function ExtensionProvider(props) {
themeInfo: themeInfo || {}
}

context.cardInfo = {...cardInfo};
if (type === 'card') {
context.cardInfo = {...cardInfo};
delete context.cardInfo.extensionId;
}

Expand Down

0 comments on commit 584282f

Please sign in to comment.