From e857066bc78b6754e93d8298a465df7bf8f2d594 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 15 Feb 2025 23:03:28 -0800 Subject: [PATCH] fix state where no profile is selected --- core/config/ConfigHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index a61f62354..939362948 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -112,7 +112,7 @@ export class ConfigHandler { return ( this.profiles.find( (p) => p.profileDescription.id === this.selectedProfileId, - ) ?? null + ) ?? this.profiles[0] ); }