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:
parent
45f11d6936
commit
e21687d360
@ -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;"` :
|
||||
|
Loading…
Reference in New Issue
Block a user