Skip to content

Commit

Permalink
Fix bug where dimension completion would trigger as soon as a dimensi…
Browse files Browse the repository at this point in the history
…on is selected
  • Loading branch information
HRemonen committed May 4, 2023
1 parent 24ffd76 commit 4768e0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/components/Openai/DimensionCompletion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ const DimensionCompletion = ({
data-cy="dimension-completion-select"
value={dimensionId}
label={t('openai:dimensionSelect')}
onChange={({ target }) => setdimensionId(target.value)}
onChange={({ target }) => {
setdimensionId(target.value)
setShowCompletion(false)
}}
>
{dimensions.map((d) => (
<MenuItem
Expand Down

0 comments on commit 4768e0f

Please sign in to comment.