Prevent adding rows to users table and remove log
This commit is contained in:
parent
a25af10c0e
commit
df757ce09b
|
@ -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}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue