From c086b8341e542e6be4092d184267b36ea03ea98c Mon Sep 17 00:00:00 2001 From: Simon Knox Date: Wed, 21 Feb 2018 18:41:02 +1100 Subject: fix "Error loading dynamic module" error on snippet edit pages --- app/assets/javascripts/pages/projects/snippets/edit/index.js | 4 +++- app/assets/javascripts/pages/projects/snippets/new/index.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/pages/projects/snippets/edit/index.js b/app/assets/javascripts/pages/projects/snippets/edit/index.js index 9edb16dc73b..f1ad71e556a 100644 --- a/app/assets/javascripts/pages/projects/snippets/edit/index.js +++ b/app/assets/javascripts/pages/projects/snippets/edit/index.js @@ -1,3 +1,5 @@ import initForm from '~/pages/projects/init_form'; -export default initForm($('.snippet-form')); +export default () => { + initForm($('.snippet-form')); +}; diff --git a/app/assets/javascripts/pages/projects/snippets/new/index.js b/app/assets/javascripts/pages/projects/snippets/new/index.js index 9edb16dc73b..f1ad71e556a 100644 --- a/app/assets/javascripts/pages/projects/snippets/new/index.js +++ b/app/assets/javascripts/pages/projects/snippets/new/index.js @@ -1,3 +1,5 @@ import initForm from '~/pages/projects/init_form'; -export default initForm($('.snippet-form')); +export default () => { + initForm($('.snippet-form')); +}; -- cgit v1.2.1