Prevent unnecessary updates in handleUserChange when the selected item remains unchanged

This commit is contained in:
Stela Augustinova
2026-02-25 09:27:50 +01:00
parent 689b3f299c
commit 0e29a7206d
-1
View File
@@ -26,7 +26,6 @@
export let tabid = null;
function handleUserChange(value) {
if (value === selectedItem) return;
if (!tabid) return;
openedTabs.update(tabs =>