add container assignemnt guard
This commit is contained in:
1 parent
a5ac9db957
commit
b2d5f3d0b0
1 file changed
+11
@@ -209,6 +209,17 @@ class TabRepository extends _$TabRepository {
|
||||
_tabBackPromptBehavior[newTabId] = promptOnBackBehavior;
|
||||
}
|
||||
|
||||
if (selectTab && ref.mounted) {
|
||||
final selectedContainerNotifier = ref.read(
|
||||
selectedContainerProvider.notifier,
|
||||
);
|
||||
if (assignedContainer != null) {
|
||||
await selectedContainerNotifier.setContainerId(assignedContainer.id);
|
||||
} else {
|
||||
selectedContainerNotifier.clearContainer();
|
||||
}
|
||||
}
|
||||
|
||||
return newTabId;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user