🐛 fix infinite rerendering bug

This commit is contained in:
Nate Sesti 2023-11-10 10:20:35 -08:00
parent b6e334ce98
commit 9aca475cd3

View file

@ -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);