1
0
mirror of https://github.com/zerobig/vscode-1c-metadata-viewer.git synced 2024-11-28 08:58:41 +02:00

В XML может отсутствовать ширина колонки

This commit is contained in:
Ilya Bushin 2022-11-05 10:18:01 +03:00
parent 45f11d6936
commit e21687d360

View File

@ -43,7 +43,7 @@ export class TemplatePanel {
.columnsItem
.map((c, index) => {
const formatIndex = Number(c.column[0].formatIndex[0]) - 1;
const columnWidth = document.format[formatIndex].width[0];
const columnWidth = document.format[formatIndex].width ? document.format[formatIndex].width[0] : '80';
return '<th' + (document.format[formatIndex] ?
` style="max-width: ${columnWidth}px; width: ${columnWidth}px;"` :