From 99d324c18a871e2b50e6ec31ec93735a8e4f5cd8 Mon Sep 17 00:00:00 2001 From: Bret Hansen Date: Wed, 14 Jul 2021 12:34:40 -0700 Subject: [PATCH 1/2] Page needs access to cardInfo --- src/components/extension-context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/extension-context.js b/src/components/extension-context.js index 815c7ab..9cfb30f 100644 --- a/src/components/extension-context.js +++ b/src/components/extension-context.js @@ -55,8 +55,8 @@ export function ExtensionProvider(props) { themeInfo: themeInfo || {} } + context.cardInfo = {...cardInfo}; if (type === 'card') { - context.cardInfo = {...cardInfo}; delete context.cardInfo.extensionId; } From 40fbe9b1efaa2da1b21cdd59f3033177ecc35a65 Mon Sep 17 00:00:00 2001 From: Bret Hansen Date: Wed, 14 Jul 2021 13:32:57 -0700 Subject: [PATCH 2/2] update version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 84c7b4a..c861607 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@ellucian/experience-extension-hooks", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8969356..66c42b0 100644 --- a/package.json +++ b/package.json @@ -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",