From 7501fa28dae2ddbce2e5efffbc75d35bf78b18d2 Mon Sep 17 00:00:00 2001 From: Braulio Date: Sun, 8 Dec 2024 11:20:06 +0100 Subject: [PATCH] update comment --- src/core/providers/canvas/use-selection.hook.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/providers/canvas/use-selection.hook.ts b/src/core/providers/canvas/use-selection.hook.ts index cffc119f..7c742f96 100644 --- a/src/core/providers/canvas/use-selection.hook.ts +++ b/src/core/providers/canvas/use-selection.hook.ts @@ -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; }