diff --git a/web/ASC.Web.Editor/src/components/dynamic.js b/web/ASC.Web.Editor/src/components/dynamic.js
index d485f997ae..54f4f21972 100644
--- a/web/ASC.Web.Editor/src/components/dynamic.js
+++ b/web/ASC.Web.Editor/src/components/dynamic.js
@@ -22,7 +22,7 @@ export const useDynamicScript = (args) => {
const [failed, setFailed] = React.useState(false);
React.useEffect(() => {
- if (!args.url) {
+ if (!args.url || args.isInit) {
return;
}
@@ -77,6 +77,7 @@ const DynamicComponent = React.memo(({ system, ...rest }) => {
const { ready, failed } = useDynamicScript({
url: system && system.url,
id: system && system.scope,
+ isInit: isInitialized,
});
if (!system) {
@@ -103,8 +104,6 @@ const DynamicComponent = React.memo(({ system, ...rest }) => {
setLoadedComponent(Component);
}
- console.log("render dynamic", system);
-
return (
}>