diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-04 12:11:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-04 12:11:46 +0300 |
commit | 9f0d27648937cb04d685ca9207f5c45f3ac98010 (patch) | |
tree | 00c30674524f01538edbb4c0aaddbfa96b78f3a3 /app/assets/javascripts/webhooks | |
parent | 0250f48d9fc064b902d37e58f09715df0e1dd4e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/webhooks')
-rw-r--r-- | app/assets/javascripts/webhooks/index.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/assets/javascripts/webhooks/index.js b/app/assets/javascripts/webhooks/index.js index d90680a9bac..7d04978280b 100644 --- a/app/assets/javascripts/webhooks/index.js +++ b/app/assets/javascripts/webhooks/index.js @@ -10,11 +10,6 @@ export default () => { const { url: initialUrl, urlVariables } = el.dataset; - // Convert the array of 'key' strings to array of { key } objects - const initialUrlVariables = urlVariables - ? JSON.parse(urlVariables)?.map((key) => ({ key })) - : undefined; - return new Vue({ el, name: 'WebhookFormRoot', @@ -22,7 +17,7 @@ export default () => { return createElement(FormUrlApp, { props: { initialUrl, - initialUrlVariables, + initialUrlVariables: JSON.parse(urlVariables), }, }); }, |