mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
fix: Fix styles, refactoring
This commit is contained in:
@@ -49,6 +49,14 @@ module.exports = {
|
||||
throw 'positionMustBeInValues';
|
||||
}
|
||||
|
||||
if (values.dueDate) {
|
||||
if (_.isNil(values.isDueDateCompleted)) {
|
||||
values.isDueDateCompleted = false;
|
||||
}
|
||||
} else {
|
||||
delete values.isDueDateCompleted;
|
||||
}
|
||||
|
||||
const cards = await sails.helpers.lists.getCards(values.list.id);
|
||||
|
||||
const { position, repositions } = sails.helpers.utils.insertToPositionables(
|
||||
|
||||
Reference in New Issue
Block a user