Skip to content

Commit

Permalink
revert prop writable checking in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Nov 29, 2021
1 parent 922a1fd commit 1e2971c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/next/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,7 @@ export class Head extends Component<
newProps['data-href'] = newProps['href']
newProps['href'] = undefined
return React.cloneElement(c, newProps)
} else if (
c.props &&
c.props['children'] &&
Object.getOwnPropertyDescriptor(c.props, 'children')?.writable
) {
} else if (c.props && c.props['children']) {
c.props['children'] = this.makeStylesheetInert(c.props['children'])
}
return c
Expand Down

0 comments on commit 1e2971c

Please sign in to comment.