Skip to content

Commit

Permalink
Merge pull request #34 from eea/code-quality
Browse files Browse the repository at this point in the history
refactor: Fix issues identified by Sonarqube Refs #254220
  • Loading branch information
andreiggr authored Jun 28, 2023
2 parents 9b2299a + 4ed1125 commit 6048e48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/manage/Blocks/Group/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ const Edit = (props) => {

const changeBlockData = (newBlockData) => {
let pastedBlocks = newBlockData.blocks_layout.items.filter((blockID) => {
if (data?.data?.blocks_layout.items.find((x) => x === blockID))
return false;
return true;
return !data?.data?.blocks_layout.items.find((x) => x === blockID);
});
const selectedIndex =
data.data.blocks_layout.items.indexOf(selectedBlock) + 1;
Expand Down

0 comments on commit 6048e48

Please sign in to comment.