Linting.
This commit is contained in:
parent
daed47a0a8
commit
c534a93091
|
@ -26,17 +26,16 @@
|
||||||
)
|
)
|
||||||
$: fields =
|
$: fields =
|
||||||
viewTable &&
|
viewTable &&
|
||||||
Object.keys(viewTable.schema).filter(
|
Object.keys(viewTable.schema).filter(fieldName => {
|
||||||
fieldName => {
|
const field = viewTable.schema[fieldName]
|
||||||
const field = viewTable.schema[fieldName]
|
return (
|
||||||
return field.type !== FIELDS.FORMULA.type && field.type !== FIELDS.LINK.type &&
|
field.type !== FIELDS.FORMULA.type &&
|
||||||
(view.calculation === "count" ||
|
field.type !== FIELDS.LINK.type &&
|
||||||
// don't want to perform calculations based on auto ID
|
(view.calculation === "count" ||
|
||||||
(field.type === "number" &&
|
// don't want to perform calculations based on auto ID
|
||||||
!field.autocolumn))
|
(field.type === "number" && !field.autocolumn))
|
||||||
}
|
)
|
||||||
|
})
|
||||||
)
|
|
||||||
|
|
||||||
function saveView() {
|
function saveView() {
|
||||||
views.save(view)
|
views.save(view)
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
$: fields =
|
$: fields =
|
||||||
viewTable &&
|
viewTable &&
|
||||||
Object.entries(viewTable.schema)
|
Object.entries(viewTable.schema)
|
||||||
.filter(entry => entry[1].type !== FIELDS.LINK.type && entry[1].type !== FIELDS.FORMULA.type)
|
.filter(
|
||||||
|
entry =>
|
||||||
|
entry[1].type !== FIELDS.LINK.type &&
|
||||||
|
entry[1].type !== FIELDS.FORMULA.type
|
||||||
|
)
|
||||||
.map(([key]) => key)
|
.map(([key]) => key)
|
||||||
|
|
||||||
function saveView() {
|
function saveView() {
|
||||||
|
|
Loading…
Reference in New Issue