mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Fix WYSIWYG preview
This commit is contained in:
parent
1e26065d95
commit
c5fd30e314
@ -153,7 +153,7 @@ class PreviewWysiwyg extends React.PureComponent {
|
||||
// NOTE: This is not optimal and this lifecycle should be removed
|
||||
// I couldn't find a better way to decrease the fullscreen preview's data conversion time
|
||||
// Trying with componentDidUpdate didn't work
|
||||
UNSAFE_UNSAFE_componentWillUpdate(nextProps, nextState) {
|
||||
UNSAFE_componentWillUpdate(nextProps, nextState) {
|
||||
if (nextProps.data !== this.props.data) {
|
||||
new Promise(resolve => {
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user