Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed Aug 23, 2024
1 parent 61f432e commit 2cf0557
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mui-system/src/preprocessStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import { internal_serializeStyles } from '@mui/styled-engine';

export default function preprocessStyles(styles: any) {
const variants = styles.variants
styles.variants = undefined

// Avoid passing `style.variants` to emotion, it will pollute the styles.
styles.variants = undefined
const serialized = internal_serializeStyles(styles) as any
styles.variants = variants

// Not supported on styled-components
if (serialized === styles) {
Expand Down

0 comments on commit 2cf0557

Please sign in to comment.