Skip to content

Commit

Permalink
if profile name is null return undefined (#136438)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Nov 4, 2021
1 parent b2c343d commit f411e1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class TerminalProfileService implements ITerminalProfileService {
return this._availableProfiles || [];
}
const platform = await this._getPlatformKey();
this._defaultProfileName = this._configurationService.getValue(`${TerminalSettingPrefix.DefaultProfile}${platform}`);
this._defaultProfileName = this._configurationService.getValue(`${TerminalSettingPrefix.DefaultProfile}${platform}`) ?? undefined;
return this._primaryOffProcessTerminalService?.getProfiles(this._configurationService.getValue(`${TerminalSettingPrefix.Profiles}${platform}`), this._defaultProfileName, includeDetectedProfiles);
}

Expand Down

0 comments on commit f411e1c

Please sign in to comment.