286
try {
287
for (const storedProfile of this.getStoredProfiles()) {
289
this.logService.warn('Skipping the invalid stored profile', storedProfile.location || storedProfile.name);
290
continue;
291
}
293
>
profiles.push(toUserDataProfile(
294
>
id,
295
>
storedProfile.name,
296
>
storedProfile.location,
297
>
this.profilesCacheHome,
298
>
{
299
>
icon: storedProfile.icon,
300
>
useDefaultFlags: id === AGENTS_WINDOW_PROFILE_ID ? AGENTS_WINDOW_PROFILE_FLAGS : storedProfile.useDefaultFlags,
301
>
},
302
>
defaultProfile));
303
>
}
304
} catch (error) {
305
this.logService.error(error);