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.

View File

@@ -1,11 +1,11 @@
#tags-column.sn-component.section.tags(aria-label='Tags')
.component-view-container(ng-if='self.component && self.component.active')
.component-view-container(ng-if='self.component')
component-view.component-view(
component-uuid='self.component.uuid',
application='self.application'
app-state='self.appState'
)
#tags-content.content(ng-if='!(self.component && self.component.active)')
#tags-content.content(ng-if='!(self.component)')
.tags-title-section.section-title-bar
.section-title-bar-header
.sk-h3.title