Fix HeaderButton errors

pull/91/head
bakzkndd 2 years ago
parent 34b281b717
commit be6b8d02d9

@ -18,7 +18,7 @@ export default async builtin => {
const instance = getOwnerInstance(await waitForElement(`.${iconWrapper}`));
patch('vz-attributes-channel-header-buttons', instance?.__proto__, 'render', (_, res) => {
try {
if (!res.props?.children?.props?.className.includes(iconWrapper, clickable)) {
if (!res.props?.children?.props?.className?.includes(iconWrapper, clickable)) {
return res;
}
/**

Loading…
Cancel
Save