fix uncaught error

This commit is contained in:
Test 2024-08-25 16:33:47 -07:00
parent ea88aa33ea
commit 32e69a3dec

View file

@ -225,7 +225,9 @@ export class ConfigHandler {
this.controlPlaneClient = new ControlPlaneClient(
Promise.resolve(sessionInfo),
);
this.fetchControlPlaneProfiles();
this.fetchControlPlaneProfiles().catch((e) => {
console.error("Failed to fetch control plane profiles: ", e);
});
}
private profilesListeners: ((profiles: ProfileDescription[]) => void)[] = [];