Skip to content

Commit

Permalink
Fix #5203: ComponentBase context could be undefined (#5217)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 1, 2023
1 parent 4b132cd commit 449ec69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/componentbase/ComponentBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export const ComponentBase = {
ptOptions: undefined,
unstyled: false
},
context: undefined,
context: {},
globalCSS: undefined,
classes: {},
styles: '',
Expand Down Expand Up @@ -635,7 +635,7 @@ const _useDefaultPT = (callback, key, params) => {
return _usePT(getDefaultPT(), callback, key, params);
};

export const useHandleStyle = (styles, isUnstyled = () => {}, config) => {
export const useHandleStyle = (styles, _isUnstyled = () => {}, config) => {
const { name, styled = false, hostName = '' } = config;

const globalCSS = _useGlobalPT(getOptionValue, 'global.css', ComponentBase.cParams);
Expand Down

0 comments on commit 449ec69

Please sign in to comment.