1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

Mute socket messages in production, fix max-len, update dependencies

This commit is contained in:
Maksim Eltyshev 2019-09-25 02:26:31 +05:00
parent d7cc9a0d56
commit 2398199740
26 changed files with 1157 additions and 1192 deletions

View file

@ -2,7 +2,6 @@ import { createSelector as createReselectSelector } from 'reselect';
import { createSelector as createReduxOrmSelector } from 'redux-orm';
import orm from '../orm';
import { dbSelector } from './common';
import matchPaths from '../utils/match-paths';
import Paths from '../constants/Paths';
@ -12,12 +11,13 @@ export const pathnameSelector = ({
},
}) => pathname;
// eslint-disable-next-line max-len
export const pathsMatchSelector = createReselectSelector(pathnameSelector, (pathname) => matchPaths(pathname, Object.values(Paths)));
export const pathsMatchSelector = createReselectSelector(
pathnameSelector,
(pathname) => matchPaths(pathname, Object.values(Paths)),
);
export const pathSelector = createReduxOrmSelector(
orm,
dbSelector,
pathsMatchSelector,
({ Project, Board, Card }, pathsMatch) => {
if (pathsMatch) {