🐛 fix infinite rerendering bug
This commit is contained in:
parent
b6e334ce98
commit
9aca475cd3
1 changed files with 1 additions and 1 deletions
|
|
@ -815,7 +815,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
|
|||
setContextLengthFillPercentage(
|
||||
tokenEstimate / Math.max(1, contextLength - 600)
|
||||
);
|
||||
}, [selectedContextItems, contextLength]);
|
||||
}, [selectedContextItems.length, contextLength]);
|
||||
|
||||
const [isComposing, setIsComposing] = useState(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue