about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/packs
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-01-14 11:48:36 +0100
committerGitHub <noreply@github.com>2019-01-14 11:48:36 +0100
commit077639c27409f897e87522dd18a51801b6cbc40d (patch)
treea70b542e4bb88ed78d221765b5a675de0e323626 /app/javascript/flavours/glitch/packs
parent2cfa55185a5fc7d93a160a4e9a4730aae6725b0f (diff)
parent4cec7a77c37e23117323a4ed8f609939ab50b4d6 (diff)
Merge pull request #886 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/packs')
-rw-r--r--app/javascript/flavours/glitch/packs/public.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/packs/public.js b/app/javascript/flavours/glitch/packs/public.js
index 342c5265e..56012ba78 100644
--- a/app/javascript/flavours/glitch/packs/public.js
+++ b/app/javascript/flavours/glitch/packs/public.js
@@ -61,6 +61,12 @@ function main() {
     if (reactComponents.length > 0) {
       import(/* webpackChunkName: "containers/media_container" */ 'flavours/glitch/containers/media_container')
         .then(({ default: MediaContainer }) => {
+          [].forEach.call(reactComponents, (component) => {
+            [].forEach.call(component.children, (child) => {
+              component.removeChild(child);
+            });
+          });
+
           const content = document.createElement('div');
 
           ReactDOM.render(<MediaContainer locale={locale} components={reactComponents} />, content);