diff options
Diffstat (limited to 'app/assets/javascripts/static_site_editor/index.js')
-rw-r--r-- | app/assets/javascripts/static_site_editor/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/static_site_editor/index.js b/app/assets/javascripts/static_site_editor/index.js index 3d40f3918a4..c6a883c659a 100644 --- a/app/assets/javascripts/static_site_editor/index.js +++ b/app/assets/javascripts/static_site_editor/index.js @@ -3,10 +3,10 @@ import StaticSiteEditor from './components/static_site_editor.vue'; import createStore from './store'; const initStaticSiteEditor = el => { - const { projectId, path: sourcePath } = el.dataset; + const { projectId, returnUrl, path: sourcePath } = el.dataset; const store = createStore({ - initialState: { projectId, sourcePath, username: window.gon.current_username }, + initialState: { projectId, returnUrl, sourcePath, username: window.gon.current_username }, }); return new Vue({ |