Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliodiez committed Dec 8, 2024
1 parent cd63378 commit 7501fa2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/providers/canvas/use-selection.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ export const useSelection = (
// Added index, right now we got multiple selection
// if not returning just 0 (first element)
const getSelectedShapeData = (index: number = 0): ShapeModel | undefined => {
// TODO: we will only allow this when there is a single selection
// check if it can be applied to multiple data
// This is is used to lock temporarily the multiple selection properties
// (right side panel) edit, it only will work when there is a single selection
// If there is one selected will return that item
// If there are multiple selected will return the first
// In case no selection will return undefined
if (index === undefined || selectedShapesIds.length === 0) {
return;
}
Expand Down

0 comments on commit 7501fa2

Please sign in to comment.