fix: remove redundant check in template
This commit is contained in:
@@ -34,7 +34,6 @@ const avoidFlickerTimeout = 7;
|
||||
export const ComponentView: FunctionalComponent<IProps> = observer(
|
||||
({
|
||||
application,
|
||||
appState,
|
||||
onLoad,
|
||||
componentUuid,
|
||||
templateComponent
|
||||
@@ -194,6 +193,7 @@ export const ComponentView: FunctionalComponent<IProps> = observer(
|
||||
|
||||
useEffect(() => {
|
||||
reloadStatus();
|
||||
|
||||
if (!iframeRef.current) {
|
||||
return;
|
||||
}
|
||||
@@ -250,7 +250,7 @@ export const ComponentView: FunctionalComponent<IProps> = observer(
|
||||
onVisibilityChange
|
||||
);
|
||||
};
|
||||
}, [appState, application, component, componentUuid, onVisibilityChange, reloadStatus, templateComponent]);
|
||||
}, [application, component, componentUuid, onVisibilityChange, templateComponent]);
|
||||
|
||||
useEffect(() => {
|
||||
// Set/update `component` based on `componentUuid` prop.
|
||||
|
||||
Reference in New Issue
Block a user