1
0
Fork 0
mirror of synced 2024-09-10 22:46:09 +12:00

Prevent adding rows to users table and remove log

This commit is contained in:
Andrew Kingston 2023-03-07 11:57:28 +00:00
parent a25af10c0e
commit df757ce09b
2 changed files with 1 additions and 2 deletions

View file

@ -21,7 +21,7 @@
</script>
<div class="wrapper">
<Sheet {API} tableId={id}>
<Sheet {API} tableId={id} allowAddRows={!isUsersTable}>
<svelte:fragment slot="controls">
<SheetCreateColumnButton />
{#if !isUsersTable}

View file

@ -82,7 +82,6 @@ export const createReorderStores = context => {
let sourceIdx = $columns.findIndex(x => x.name === sourceColumn)
let targetIdx = $columns.findIndex(x => x.name === targetColumn)
targetIdx++
console.log(sourceIdx, targetIdx)
columns.update(state => {
const removed = state.splice(sourceIdx, 1)
if (--targetIdx < sourceIdx) {