fix: remove redundant check in template

This commit is contained in:
Mo Bitar
2021-12-02 13:07:28 -06:00
parent 9730006cba
commit 1a138ef83d
2 changed files with 4 additions and 4 deletions

View File

@@ -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.