fix ButtonItem shim applying when not needed

This commit is contained in:
TrainDoctor
2022-08-17 17:32:50 -07:00
parent d05e8d36b4
commit 5646c4b526
+1 -1
View File
@@ -30,12 +30,12 @@ if (!window.webpackJsonp || window.webpackJsonp.deckyShimmed) {
if (mod[1].get_require) return { c: v4Cache }; if (mod[1].get_require) return { c: v4Cache };
}, },
}; };
}
CommonUIModule.__deckyButtonItemShim = forwardRef((props: any, ref: any) => { CommonUIModule.__deckyButtonItemShim = forwardRef((props: any, ref: any) => {
// tricks the old filter into working // tricks the old filter into working
const dummy = `childrenContainerWidth:"min"`; const dummy = `childrenContainerWidth:"min"`;
return <ButtonItem ref={ref} _shim={dummy} {...props} />; return <ButtonItem ref={ref} _shim={dummy} {...props} />;
}); });
}
(async () => { (async () => {
window.deckyHasLoaded = true; window.deckyHasLoaded = true;