diff --git a/webapp/packages/core-blocks/src/useS.ts b/webapp/packages/core-blocks/src/useS.ts index f9165d4528f..3ee0b1f6ea2 100644 --- a/webapp/packages/core-blocks/src/useS.ts +++ b/webapp/packages/core-blocks/src/useS.ts @@ -49,6 +49,7 @@ export function useS(...componentStyles: [...T]): Ex const themeService = useService(ThemeService); const [currentThemeId, setCurrentThemeId] = useState(() => themeService.currentThemeId); const lastThemeRef = useRef(currentThemeId); + //@ts-ignore const filteredStyles = themeService.mapStyles(componentStyles.flat(Infinity).filter(Boolean) as Style[], context); const trackTheme = filteredStyles.some(style => typeof style === 'function');