From 1cdce6b05831fe33c4777f297f01560db1ad0cf3 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Tue, 21 May 2024 21:41:41 +0200 Subject: [PATCH] Keep a maximum on the tab ids --- src/back/routes/common/tabs/tabs.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/back/routes/common/tabs/tabs.tsx b/src/back/routes/common/tabs/tabs.tsx index 71bb2ff..96a707b 100644 --- a/src/back/routes/common/tabs/tabs.tsx +++ b/src/back/routes/common/tabs/tabs.tsx @@ -5,6 +5,9 @@ const ids = (function* () { let i = 0; while (true) { yield i++; + if (i >= 100000) { + i = 0; + } } })();