Fix primary display column not properly disabling certain menu options

This commit is contained in:
Andrew Kingston 2023-04-18 14:18:57 +01:00
parent dfd958a08e
commit 6d2c928e51
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@
<MenuItem <MenuItem
icon="Label" icon="Label"
on:click={makeDisplayColumn} on:click={makeDisplayColumn}
disabled={column.idx === "sticky" || disabled={idx === "sticky" ||
!$config.allowEditColumns || !$config.allowEditColumns ||
bannedDisplayColumnTypes.includes(column.schema.type)} bannedDisplayColumnTypes.includes(column.schema.type)}
> >

View File

@ -79,7 +79,7 @@
</SheetCell> </SheetCell>
{#if $stickyColumn} {#if $stickyColumn}
<HeaderCell column={$stickyColumn} orderable={false} /> <HeaderCell column={$stickyColumn} orderable={false} idx="sticky" />
{/if} {/if}
</div> </div>