From 0c68d20005fd1c8d340eebb8e06d67daed6ee18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrab=C4=9B?= <46423131+sproott@users.noreply.github.com> Date: Wed, 6 Mar 2024 10:41:20 +0100 Subject: [PATCH] fix: images not loading in editor (#7111) --- .../src/components/Editor/EditorControlPane/Widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/decap-cms-core/src/components/Editor/EditorControlPane/Widget.js b/packages/decap-cms-core/src/components/Editor/EditorControlPane/Widget.js index 953065a10c7d..555cae3b0e2d 100644 --- a/packages/decap-cms-core/src/components/Editor/EditorControlPane/Widget.js +++ b/packages/decap-cms-core/src/components/Editor/EditorControlPane/Widget.js @@ -78,7 +78,7 @@ export default class Widget extends Component { /** * Avoid unnecessary rerenders while loading assets. */ - if (this.props.isLoadingAsset) return false; + if (this.props.isLoadingAsset && nextProps.isLoadingAsset) return false; /** * Allow widgets to provide their own `shouldComponentUpdate` method. */