mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 01:09:49 +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
|
// 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
|
// I couldn't find a better way to decrease the fullscreen preview's data conversion time
|
||||||
// Trying with componentDidUpdate didn't work
|
// Trying with componentDidUpdate didn't work
|
||||||
UNSAFE_UNSAFE_componentWillUpdate(nextProps, nextState) {
|
UNSAFE_componentWillUpdate(nextProps, nextState) {
|
||||||
if (nextProps.data !== this.props.data) {
|
if (nextProps.data !== this.props.data) {
|
||||||
new Promise(resolve => {
|
new Promise(resolve => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user