diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-01 14:42:48 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-01 14:42:48 -0700 |
commit | fa34214012d14385d231a1ac4f16006aaf4331fb (patch) | |
tree | 7b9142f7b90fd6ea1908190381af812439dee03f /extension/react-app/src/components/PillButton.tsx | |
parent | 74a52c8399b3ccf2d2100b088b79e65c6ca6ad7e (diff) | |
download | sncontinue-fa34214012d14385d231a1ac4f16006aaf4331fb.tar.gz sncontinue-fa34214012d14385d231a1ac4f16006aaf4331fb.tar.bz2 sncontinue-fa34214012d14385d231a1ac4f16006aaf4331fb.zip |
fix: :bug: fix bugs when selecting code to edit
Diffstat (limited to 'extension/react-app/src/components/PillButton.tsx')
-rw-r--r-- | extension/react-app/src/components/PillButton.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
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, + ]); }} > <PaintBrush |