Skip to content

Commit

Permalink
fix chain expresion sonarqube note
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Quelca committed Jul 9, 2024
1 parent c3173f3 commit 5a91e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sortable/Sortable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default {
*/
getPropertyValue(obj, path) {
const parts = path.split('.');
return parts.reduce((acc, curr) => acc?[curr], obj);
return parts.reduce((acc, curr) => acc?.[curr], obj);
},
/**
Expand Down

0 comments on commit 5a91e88

Please sign in to comment.