Fix not being able to add rows when only a sticky column exists

This commit is contained in:
Andrew Kingston 2023-06-22 09:22:39 +01:00
parent 6d0271ae97
commit 05bba92b94
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
}
const startAdding = async () => {
if (visible || !$renderedColumns.length) {
if (visible || !firstColumn) {
return
}
@ -142,7 +142,7 @@
</script>
<!-- New row FAB -->
{#if !visible && !selectedRowCount && $config.allowAddRows && $renderedColumns.length}
{#if !visible && !selectedRowCount && $config.allowAddRows && firstColumn}
<div
class="new-row-fab"
on:click={() => dispatch("add-row-inline")}