Skip to content

Commit

Permalink
refactor: pr review suggestion applied
Browse files Browse the repository at this point in the history
Co-authored-by: Rui Silva <ruipedrosilva.1998@gmail.com>
  • Loading branch information
nunocaseiro and rpvsilva authored Mar 5, 2022
1 parent 009fd1a commit c28ed83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/modules/cards/services/unmerge.card.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class UnmergeCardServiceImpl implements UnmergeCardService {
(item) => item._id.toString() !== draggedCardId,
);
if (items.length === 1) {
const { text, comments, votes: itemVotes } = items[0];
const [{ text, comments, votes: itemVotes }] = items;
const newComments = cardGroup.comments.concat(comments);
const newVotes = (cardGroup.votes as unknown as string[]).concat(
itemVotes as unknown as string[],
Expand Down

0 comments on commit c28ed83

Please sign in to comment.