removing logging

This commit is contained in:
Peter Clement 2023-11-28 14:07:17 +00:00
parent 45ab9a54be
commit 88d575d2f0
1 changed files with 3 additions and 5 deletions

View File

@ -149,7 +149,6 @@
} }
const initialiseField = (field, savingColumn) => { const initialiseField = (field, savingColumn) => {
isCreating = !field isCreating = !field
console.log("triggered")
if (field && !savingColumn) { if (field && !savingColumn) {
editableColumn = cloneDeep(field) editableColumn = cloneDeep(field)
originalName = editableColumn.name ? editableColumn.name + "" : null originalName = editableColumn.name ? editableColumn.name + "" : null
@ -172,7 +171,7 @@
} }
} }
} }
if (!field && !savingColumn) { if (!savingColumn) {
let highestNumber = 0 let highestNumber = 0
Object.keys(table.schema).forEach(columnName => { Object.keys(table.schema).forEach(columnName => {
const columnNumber = extractColumnNumber(columnName) const columnNumber = extractColumnNumber(columnName)
@ -183,9 +182,9 @@
}) })
if (highestNumber >= 1) { if (highestNumber >= 1) {
//editableColumn.name = `Column 0${highestNumber + 1}` editableColumn.name = `Column 0${highestNumber + 1}`
} else { } else {
//editableColumn.name = "Column 01" editableColumn.name = "Column 01"
} }
} }
@ -536,7 +535,6 @@
onMount(() => { onMount(() => {
mounted = true mounted = true
}) })
$: console.log(editableColumn)
</script> </script>
<Layout noPadding gap="S"> <Layout noPadding gap="S">