summaryrefslogtreecommitdiffstats
path: root/config/router.js
diff options
context:
space:
mode:
authorJustin Reynolds <justinr1234@gmail.com>2019-06-28 12:52:09 -0500
committerJustin Reynolds <justinr1234@gmail.com>2019-06-28 12:56:51 -0500
commit3eb4d2c341b712268bd321173909e0a7b19a88c9 (patch)
tree25a8fcb088f3984e72a5bd3ded9e6a45376e0693 /config/router.js
parenta0a482aa8efb3255a523de4524c8e09453d5571f (diff)
downloadwekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.gz
wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.bz2
wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.zip
Prettier & eslint project style update
Diffstat (limited to 'config/router.js')
-rw-r--r--config/router.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/config/router.js b/config/router.js
index 80e89e4c..ad76035b 100644
--- a/config/router.js
+++ b/config/router.js
@@ -1,7 +1,9 @@
let previousPath;
-FlowRouter.triggers.exit([({path}) => {
- previousPath = path;
-}]);
+FlowRouter.triggers.exit([
+ ({ path }) => {
+ previousPath = path;
+ },
+]);
FlowRouter.route('/', {
name: 'home',
@@ -192,9 +194,11 @@ const redirections = {
_.each(redirections, (newPath, oldPath) => {
FlowRouter.route(oldPath, {
- triggersEnter: [(context, redirect) => {
- redirect(FlowRouter.path(newPath, context.params));
- }],
+ triggersEnter: [
+ (context, redirect) => {
+ redirect(FlowRouter.path(newPath, context.params));
+ },
+ ],
});
});