diff options
author | pluralcafe-docker <git@plural.cafe> | 2019-01-16 19:42:48 +0000 |
---|---|---|
committer | pluralcafe-docker <git@plural.cafe> | 2019-01-16 19:42:48 +0000 |
commit | d899138556513c8a5fa3397606ecc4752b7c6785 (patch) | |
tree | 043d220748575a444b8628d8c4bf2e5225a92a00 /app/javascript/flavours/glitch/packs | |
parent | a6e0ff72f552dc172c18f5a10bbca071b067ab51 (diff) | |
parent | fb7ec403227690f897a9a693f2461b94bf7e2582 (diff) |
Merge branch 'master' into production
Diffstat (limited to 'app/javascript/flavours/glitch/packs')
-rw-r--r-- | app/javascript/flavours/glitch/packs/public.js | 6 |
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); |