1
0
Fork 0
mirror of synced 2024-07-16 11:45:47 +12:00

remove logs

This commit is contained in:
kevmodrome 2020-09-28 10:58:38 +02:00
parent 1ea709e356
commit 01dd735342
2 changed files with 0 additions and 4 deletions

View file

@ -22,10 +22,8 @@
let columnDefs
onMount(async () => {
console.log(datasource)
const jsonModel = await _bb.api.get(`/api/models/${datasource.modelId}`)
const { schema } = await jsonModel.json()
console.log(schema)
if (!isEmpty(datasource)) {
data = await fetchData(datasource)
columnDefs = Object.keys(schema).map(key => {

View file

@ -1,8 +1,6 @@
// https://www.ag-grid.com/javascript-grid-value-setters/
// These handles values and makes sure they adhere to the data type provided by the model
export const number = (params) => {
console.log('Params: ', params)
console.log('New Value: ', parseFloat(params.newValue))
params.data[params.colDef.field] = parseFloat(params.newValue);
return true;
}