Skip to content

Commit

Permalink
Make it so selectMultiEditCardDiff includes TODO enablements and disa…
Browse files Browse the repository at this point in the history
…blements.

Part of #174. Part of #688.
  • Loading branch information
jkomoros committed Mar 30, 2024
1 parent 011d078 commit 19e0b12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1733,11 +1733,15 @@ export const selectMultiEditCardDiff = createSelector(
selectMultiEditReferencesDiff,
selectMultiEditAddTags,
selectMultiEditRemoveTags,
(referencesDiff, addTags, removeTags) => {
selectMultiEditAddTODOEnablements,
selectMultiEditAddTODODisablements,
(referencesDiff, addTags, removeTags, todoEnablements, todoDisablements) => {
const result : CardDiff = {};
if (referencesDiff.length) result.references_diff = referencesDiff;
if (addTags.length) result.add_tags = addTags;
if (removeTags.length) result.remove_tags = removeTags;
if (todoEnablements.length) result.auto_todo_overrides_enablements = todoEnablements;
if (todoDisablements.length) result.auto_todo_overrides_disablements = todoDisablements;
return result;
}
);

0 comments on commit 19e0b12

Please sign in to comment.