fix: stop pointless history entry creation in version combobox

This commit is contained in:
trafficlunar 2025-02-15 19:15:20 +00:00
parent 465273987d
commit 620f15aaed

View file

@ -44,6 +44,9 @@ function VersionCombobox({ version, setVersion, isContext }: Props) {
useEffect(() => {
setVersion((prev) => {
// If the previous and current values are the same, return
if (numberToVersion(prev) == comboboxValue) return prev;
if (isContext) {
const oldVersion = prev;
addHistory(