diff --git a/packages/web/src/commands/stdCommands.ts b/packages/web/src/commands/stdCommands.ts index fa86e9540..fc3eea66a 100644 --- a/packages/web/src/commands/stdCommands.ts +++ b/packages/web/src/commands/stdCommands.ts @@ -255,7 +255,7 @@ export function registerFileCommands({ name: 'Kill', icon: 'icon close', toolbar: true, - testEnabled: () => getCurrentEditor() != null && getCurrentEditor()?.canKill(), + testEnabled: () => getCurrentEditor()?.canKill && getCurrentEditor().canKill(), onClick: () => getCurrentEditor().kill(), }); } diff --git a/packages/web/src/datagrid/DataGridCore.svelte b/packages/web/src/datagrid/DataGridCore.svelte index 948189753..df913d536 100644 --- a/packages/web/src/datagrid/DataGridCore.svelte +++ b/packages/web/src/datagrid/DataGridCore.svelte @@ -1069,7 +1069,9 @@ data-col="header" bind:clientHeight={rowHeight} style={`width:${headerColWidth}px; min-width:${headerColWidth}px; max-width:${headerColWidth}px`} - /> + > + + {#each visibleRealColumns as col (col.uniqueName)}