diff options
author | Simon Knox <psimyn@gmail.com> | 2018-02-21 18:41:02 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2018-02-21 18:41:02 +1100 |
commit | c086b8341e542e6be4092d184267b36ea03ea98c (patch) | |
tree | afe7717a684533f172db3fbbfb2cef98bfe39e57 | |
parent | 11bf575fe64e55cc932c5629e2d8d103109e0b2b (diff) | |
download | gitlab-ce-snippet-throw.tar.gz |
fix "Error loading dynamic module" error on snippet edit pagessnippet-throw
-rw-r--r-- | app/assets/javascripts/pages/projects/snippets/edit/index.js | 4 | ||||
-rw-r--r-- | 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')); +}; |