|
|
|
@ -26,17 +26,16 @@ |
|
|
|
) |
|
|
|
$: fields = |
|
|
|
viewTable && |
|
|
|
Object.keys(viewTable.schema).filter( |
|
|
|
fieldName => { |
|
|
|
const field = viewTable.schema[fieldName] |
|
|
|
return field.type !== FIELDS.FORMULA.type && field.type !== FIELDS.LINK.type && |
|
|
|
(view.calculation === "count" || |
|
|
|
// don't want to perform calculations based on auto ID |
|
|
|
(field.type === "number" && |
|
|
|
!field.autocolumn)) |
|
|
|
} |
|
|
|
|
|
|
|
) |
|
|
|
Object.keys(viewTable.schema).filter(fieldName => { |
|
|
|
const field = viewTable.schema[fieldName] |
|
|
|
return ( |
|
|
|
field.type !== FIELDS.FORMULA.type && |
|
|
|
field.type !== FIELDS.LINK.type && |
|
|
|
(view.calculation === "count" || |
|
|
|
// don't want to perform calculations based on auto ID |
|
|
|
(field.type === "number" && !field.autocolumn)) |
|
|
|
) |
|
|
|
}) |
|
|
|
|
|
|
|
function saveView() { |
|
|
|
views.save(view) |
|
|
|
|