Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ide/sync_router_and_store.js')
-rw-r--r--app/assets/javascripts/ide/sync_router_and_store.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/ide/sync_router_and_store.js b/app/assets/javascripts/ide/sync_router_and_store.js
index b33bcbb94ea..d73ac93dc1d 100644
--- a/app/assets/javascripts/ide/sync_router_and_store.js
+++ b/app/assets/javascripts/ide/sync_router_and_store.js
@@ -21,8 +21,8 @@ export const syncRouterAndStore = (router, store) => {
// sync store to router
disposables.push(
store.watch(
- state => state.router.fullPath,
- fullPath => {
+ (state) => state.router.fullPath,
+ (fullPath) => {
if (currentPath === fullPath) {
return;
}
@@ -36,7 +36,7 @@ export const syncRouterAndStore = (router, store) => {
// sync router to store
disposables.push(
- router.afterEach(to => {
+ router.afterEach((to) => {
if (currentPath === to.fullPath) {
return;
}
@@ -47,7 +47,7 @@ export const syncRouterAndStore = (router, store) => {
);
const unsync = () => {
- disposables.forEach(fn => fn());
+ disposables.forEach((fn) => fn());
};
return unsync;