Handle undefined extension publishers in issue reporter, fixes #118480
This commit is contained in:
parent
bdbf585012
commit
d4f8348c6a
3 changed files with 3 additions and 3 deletions
|
@ -1181,7 +1181,7 @@ export class IssueReporter extends Disposable {
|
|||
),
|
||||
...extensions.map(extension => $('tr', undefined,
|
||||
$('td', undefined, extension.name),
|
||||
$('td', undefined, extension.publisher.substr(0, 3)),
|
||||
$('td', undefined, extension.publisher?.substr(0, 3) ?? 'N/A'),
|
||||
$('td', undefined, extension.version),
|
||||
))
|
||||
);
|
||||
|
|
|
@ -238,7 +238,7 @@ ${this._data.experimentInfo}
|
|||
const tableHeader = `Extension|Author (truncated)|Version
|
||||
---|---|---`;
|
||||
const table = this._data.enabledNonThemeExtesions.map(e => {
|
||||
return `${e.name}|${e.publisher.substr(0, 3)}|${e.version}`;
|
||||
return `${e.name}|${e.publisher?.substr(0, 3) ?? 'N/A'}|${e.version}`;
|
||||
}).join('\n');
|
||||
|
||||
return `<details><summary>Extensions (${this._data.enabledNonThemeExtesions.length})</summary>
|
||||
|
|
|
@ -41,7 +41,7 @@ export interface IssueReporterStyles extends WindowStyles {
|
|||
|
||||
export interface IssueReporterExtensionData {
|
||||
name: string;
|
||||
publisher: string;
|
||||
publisher: string | undefined;
|
||||
version: string;
|
||||
id: string;
|
||||
isTheme: boolean;
|
||||
|
|
Loading…
Reference in a new issue