diff options
Diffstat (limited to 'app/assets/javascripts/search/topbar/index.js')
-rw-r--r-- | app/assets/javascripts/search/topbar/index.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/assets/javascripts/search/topbar/index.js b/app/assets/javascripts/search/topbar/index.js index 95e15afd597..6aac91a40d3 100644 --- a/app/assets/javascripts/search/topbar/index.js +++ b/app/assets/javascripts/search/topbar/index.js @@ -11,19 +11,16 @@ export const initTopbar = (store) => { return false; } - const { groupInitialJson, projectInitialJson } = el.dataset; - - const groupInitialJsonParsed = JSON.parse(groupInitialJson); - const projectInitialJsonParsed = JSON.parse(projectInitialJson); + const { defaultBranchName } = el.dataset; return new Vue({ el, + name: 'GlobalSearchTopbar', store, render(createElement) { return createElement(GlobalSearchTopbar, { props: { - groupInitialJson: groupInitialJsonParsed, - projectInitialJson: projectInitialJsonParsed, + defaultBranchName, }, }); }, |