@elliemae/ds-props-helpers 2.2.0-next.5 → 2.2.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ const useGetGlobalAttributes = (props, overrides) => {
16
16
  let [key, value] = _ref;
17
17
 
18
18
  if (key in constants.globalAttributes || key.startsWith('data-')) {
19
- if (key in overrides && typeof value === 'function' && typeof overrides[key] === 'function') {
19
+ if (overrides && key in overrides && typeof value === 'function' && typeof overrides[key] === 'function') {
20
20
  const newFunc = function () {
21
21
  value(...arguments);
22
22
  overrides[key](...arguments);
@@ -12,7 +12,7 @@ const useGetGlobalAttributes = (props, overrides) => {
12
12
  let [key, value] = _ref;
13
13
 
14
14
  if (key in globalAttributes || key.startsWith('data-')) {
15
- if (key in overrides && typeof value === 'function' && typeof overrides[key] === 'function') {
15
+ if (overrides && key in overrides && typeof value === 'function' && typeof overrides[key] === 'function') {
16
16
  const newFunc = function () {
17
17
  value(...arguments);
18
18
  overrides[key](...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-props-helpers",
3
- "version": "2.2.0-next.5",
3
+ "version": "2.2.0-next.6",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Props Helpers",
6
6
  "module": "./esm/index.js",