dont override container of existing tabs
This commit is contained in:
1 parent
3e65418597
commit
3470cbd2eb
1 file changed
+1
-8
@@ -127,14 +127,7 @@ class TabDao extends DatabaseAccessor<TabDatabase> with $TabDaoMixin {
|
||||
containerId: containerId,
|
||||
orderKey: currentOrderKey,
|
||||
),
|
||||
onConflict: DoUpdate(
|
||||
(old) => TabCompanion(
|
||||
parentId: parentId,
|
||||
containerId: containerId,
|
||||
orderKey: Value.absentIfNull(orderKey.value),
|
||||
),
|
||||
where: (old) => old.containerId.isNull(),
|
||||
),
|
||||
mode: InsertMode.insertOrIgnore,
|
||||
);
|
||||
|
||||
return tabId;
|
||||
|
||||
Reference in new issue
Block a user