chore: Update dependencies
This commit is contained in:
@@ -23,9 +23,9 @@ export function* fetchBoardByCurrentPath() {
|
||||
|
||||
if (pathsMatch) {
|
||||
let boardId;
|
||||
if (pathsMatch.path === Paths.BOARDS) {
|
||||
if (pathsMatch.pattern.path === Paths.BOARDS) {
|
||||
boardId = pathsMatch.params.id;
|
||||
} else if (pathsMatch.path === Paths.CARDS) {
|
||||
} else if (pathsMatch.pattern.path === Paths.CARDS) {
|
||||
({
|
||||
item: card,
|
||||
item: { boardId },
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { call, put, select, take } from 'redux-saga/effects';
|
||||
import { push } from 'connected-react-router';
|
||||
import { push } from 'redux-first-history';
|
||||
|
||||
import request from '../request';
|
||||
import selectors from '../../../selectors';
|
||||
@@ -31,7 +31,7 @@ export function* handleLocationChange() {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (pathsMatch.path) {
|
||||
switch (pathsMatch.pattern.path) {
|
||||
case Paths.LOGIN:
|
||||
yield call(goToRoot);
|
||||
|
||||
@@ -58,7 +58,7 @@ export function* handleLocationChange() {
|
||||
let attachments;
|
||||
let deletedNotifications;
|
||||
|
||||
switch (pathsMatch.path) {
|
||||
switch (pathsMatch.pattern.path) {
|
||||
case Paths.BOARDS:
|
||||
case Paths.CARDS: {
|
||||
const currentBoard = yield select(selectors.selectCurrentBoard);
|
||||
@@ -85,7 +85,7 @@ export function* handleLocationChange() {
|
||||
} catch (error) {} // eslint-disable-line no-empty
|
||||
}
|
||||
|
||||
if (pathsMatch.path === Paths.CARDS) {
|
||||
if (pathsMatch.pattern.path === Paths.CARDS) {
|
||||
const notificationIds = yield select(selectors.selectNotificationIdsForCurrentCard);
|
||||
|
||||
if (notificationIds && notificationIds.length > 0) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { takeEvery } from 'redux-saga/effects';
|
||||
import { LOCATION_CHANGE } from 'connected-react-router';
|
||||
import { LOCATION_CHANGE } from 'redux-first-history';
|
||||
|
||||
import services from '../services';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { call, put, select } from 'redux-saga/effects';
|
||||
import { push } from 'connected-react-router';
|
||||
import { push } from 'redux-first-history';
|
||||
|
||||
import selectors from '../../../selectors';
|
||||
import Paths from '../../../constants/Paths';
|
||||
@@ -19,7 +19,7 @@ export function* handleLocationChange() {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (pathsMatch.path) {
|
||||
switch (pathsMatch.pattern.path) {
|
||||
case Paths.ROOT:
|
||||
case Paths.PROJECTS:
|
||||
case Paths.BOARDS:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { takeEvery } from 'redux-saga/effects';
|
||||
import { LOCATION_CHANGE } from 'connected-react-router';
|
||||
import { LOCATION_CHANGE } from 'redux-first-history';
|
||||
|
||||
import services from '../services';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user