summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2018-02-21 18:41:02 +1100
committerSimon Knox <psimyn@gmail.com>2018-02-21 18:41:02 +1100
commitc086b8341e542e6be4092d184267b36ea03ea98c (patch)
treeafe7717a684533f172db3fbbfb2cef98bfe39e57
parent11bf575fe64e55cc932c5629e2d8d103109e0b2b (diff)
downloadgitlab-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.js4
-rw-r--r--app/assets/javascripts/pages/projects/snippets/new/index.js4
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'));
+};