Skip to content

Commit 0c68d20

Browse files
authored
fix: images not loading in editor (#7111)
1 parent 67bf737 commit 0c68d20

File tree

1 file changed

+1
-1
lines changed
  • packages/decap-cms-core/src/components/Editor/EditorControlPane

1 file changed

+1
-1
lines changed

packages/decap-cms-core/src/components/Editor/EditorControlPane/Widget.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class Widget extends Component {
7878
/**
7979
* Avoid unnecessary rerenders while loading assets.
8080
*/
81-
if (this.props.isLoadingAsset) return false;
81+
if (this.props.isLoadingAsset && nextProps.isLoadingAsset) return false;
8282
/**
8383
* Allow widgets to provide their own `shouldComponentUpdate` method.
8484
*/

0 commit comments

Comments
 (0)