From fa34214012d14385d231a1ac4f16006aaf4331fb Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 1 Aug 2023 14:42:48 -0700 Subject: fix: :bug: fix bugs when selecting code to edit --- extension/react-app/src/components/PillButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extension/react-app/src/components/PillButton.tsx') diff --git a/extension/react-app/src/components/PillButton.tsx b/extension/react-app/src/components/PillButton.tsx index e3d05711..0b1aa23d 100644 --- a/extension/react-app/src/components/PillButton.tsx +++ b/extension/react-app/src/components/PillButton.tsx @@ -168,7 +168,9 @@ const PillButton = (props: PillButtonProps) => { data-tooltip-id={`edit-${props.index}`} backgroundColor={"#8800aa55"} onClick={() => { - client?.setEditingAtIndices([props.index]); + client?.setEditingAtIds([ + props.item.description.id.item_id, + ]); }} >