mirror of
https://github.com/plankanban/planka.git
synced 2025-08-09 15:35:29 +02:00
fix: Cleaned data before passing further (removed open)
This commit is contained in:
parent
f5d83d0456
commit
fb2681f8c7
1 changed files with 3 additions and 2 deletions
|
@ -10,8 +10,9 @@ import { createLocalId } from '../../../utils/local-id';
|
||||||
export function* createCard(listId, data) {
|
export function* createCard(listId, data) {
|
||||||
const { boardId } = yield select(selectors.selectListById, listId);
|
const { boardId } = yield select(selectors.selectListById, listId);
|
||||||
|
|
||||||
|
const { open, ...cleanData } = data;
|
||||||
const nextData = {
|
const nextData = {
|
||||||
...data,
|
...cleanData,
|
||||||
position: yield select(selectors.selectNextCardPosition, listId),
|
position: yield select(selectors.selectNextCardPosition, listId),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,7 +35,7 @@ export function* createCard(listId, data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
yield put(actions.createCard.success(localId, card));
|
yield put(actions.createCard.success(localId, card));
|
||||||
if (data.open) {
|
if (open) {
|
||||||
yield call(goToCard, card.id);
|
yield call(goToCard, card.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue