diff --git a/src/modules/pages/connection/list/list_item/list_item.model.ts b/src/modules/pages/connection/list/list_item/list_item.model.ts index 6db6b3e..da9924c 100644 --- a/src/modules/pages/connection/list/list_item/list_item.model.ts +++ b/src/modules/pages/connection/list/list_item/list_item.model.ts @@ -102,7 +102,7 @@ export class ListItemModel extends Model<{ item.connectionData = JSON.parse(item.connectionData as string); }); if (name === this.model.connectionSelected) { - this.model.connectionSelected = ''; + this.model.connectionSelected = BI.size(this.model.connections) > 0 ? this.model.connections[0].connectionName : ''; } api.shutdownConnectionStatus(name); });