mirror of
https://github.com/plankanban/planka.git
synced 2025-12-10 01:10:33 +03:00
fix: Correctly parse environment variables, little refactoring
This commit is contained in:
@@ -166,7 +166,6 @@ export default class extends BaseModel {
|
||||
|
||||
break;
|
||||
}
|
||||
// TODO: refactor
|
||||
case ActionTypes.LIST_UPDATE_HANDLE: {
|
||||
const listModel = List.withId(payload.list.id);
|
||||
|
||||
@@ -185,8 +184,6 @@ export default class extends BaseModel {
|
||||
isClosed = true;
|
||||
}
|
||||
|
||||
listModel.update(prepareList(payload.list));
|
||||
|
||||
if (isClosed !== undefined) {
|
||||
listModel.cards.toModelArray().forEach((cardModel) => {
|
||||
cardModel.update({
|
||||
@@ -199,7 +196,9 @@ export default class extends BaseModel {
|
||||
});
|
||||
}
|
||||
}
|
||||
} else if (payload.list.boardId !== null) {
|
||||
}
|
||||
|
||||
if (payload.list.boardId !== null) {
|
||||
List.upsert(prepareList(payload.list));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,12 +25,12 @@ export default function* listsWatchers() {
|
||||
takeEvery(EntryActionTypes.LIST_MOVE, ({ payload: { id, index } }) =>
|
||||
services.moveList(id, index),
|
||||
),
|
||||
takeEvery(EntryActionTypes.LIST_SORT, ({ payload: { id, data } }) =>
|
||||
services.sortList(id, data),
|
||||
),
|
||||
takeEvery(EntryActionTypes.LIST_TRANSFER, ({ payload: { id, boardId, index } }) =>
|
||||
services.transferList(id, boardId, index),
|
||||
),
|
||||
takeEvery(EntryActionTypes.LIST_SORT, ({ payload: { id, data } }) =>
|
||||
services.sortList(id, data),
|
||||
),
|
||||
takeEvery(EntryActionTypes.LIST_CARDS_TO_ARCHIVE_LIST_MOVE, ({ payload: { id } }) =>
|
||||
services.moveListCardsToArchiveList(id),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user