about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/packs
diff options
context:
space:
mode:
authorpluralcafe-docker <git@plural.cafe>2019-01-16 19:42:22 +0000
committerpluralcafe-docker <git@plural.cafe>2019-01-16 19:42:22 +0000
commitfb7ec403227690f897a9a693f2461b94bf7e2582 (patch)
tree043d220748575a444b8628d8c4bf2e5225a92a00 /app/javascript/flavours/glitch/packs
parentae24ef877b82466cab026a76ea6ed8598ddaae18 (diff)
parent530d29148ca0c5bf29f6fa516b1ef4f91d95894b (diff)
Merge branch 'glitch'
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);