dont override container of existing tabs

This commit is contained in:
Fabian Freund
2025-10-15 06:46:32 +02:00
parent 3e65418597
commit 3470cbd2eb
@@ -127,14 +127,7 @@ class TabDao extends DatabaseAccessor<TabDatabase> with $TabDaoMixin {
containerId: containerId, containerId: containerId,
orderKey: currentOrderKey, orderKey: currentOrderKey,
), ),
onConflict: DoUpdate( mode: InsertMode.insertOrIgnore,
(old) => TabCompanion(
parentId: parentId,
containerId: containerId,
orderKey: Value.absentIfNull(orderKey.value),
),
where: (old) => old.containerId.isNull(),
),
); );
return tabId; return tabId;