Skip to content

Commit f0d69af

Browse files
committed
Portal.view.learn.ContentComponent: sometimes LivePreviews get rendered twice #6245
1 parent 32f7b62 commit f0d69af

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

apps/portal/view/learn/ContentComponent.mjs

+1-13
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,6 @@ class ContentComponent extends Component {
8484

8585
if (value) {
8686
me.timeout(50).then(() => {
87-
me.customComponents.forEach(component => {
88-
if (!component.mounted && !component.rendering) {
89-
component.render(true)
90-
}
91-
});
92-
93-
me.livePreviews.forEach(livePreview => {
94-
if (!livePreview.mounted && !livePreview.rendering) {
95-
livePreview.render(true)
96-
}
97-
});
98-
9987
Neo.main.addon.IntersectionObserver.register({
10088
callback: 'findTopmostItem',
10189
id : me.id,
@@ -110,7 +98,7 @@ class ContentComponent extends Component {
11098

11199
me.livePreviews.forEach(livePreview => {
112100
livePreview.mounted = false
113-
});
101+
})
114102
}
115103
}
116104

0 commit comments

Comments
 (0)