Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Commit 449ec69

Browse files
authored
Fix #5203: ComponentBase context could be undefined (#5217)
1 parent 4b132cd commit 449ec69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/lib/componentbase/ComponentBase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export const ComponentBase = {
472472
ptOptions: undefined,
473473
unstyled: false
474474
},
475-
context: undefined,
475+
context: {},
476476
globalCSS: undefined,
477477
classes: {},
478478
styles: '',
@@ -635,7 +635,7 @@ const _useDefaultPT = (callback, key, params) => {
635635
return _usePT(getDefaultPT(), callback, key, params);
636636
};
637637

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

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

0 commit comments

Comments
 (0)