fix: missing comma in migration file
fix: default value for customer notes fix: remove custom requirements divider when there are no requirements set
This commit is contained in:
parent
e0529efb92
commit
01841c03ba
3 changed files with 4 additions and 4 deletions
|
|
@ -670,7 +670,7 @@ function getCustomersList (phone = null, name = null, address = null, id = null)
|
||||||
.then(customers => Promise.all(_.map(customer => {
|
.then(customers => Promise.all(_.map(customer => {
|
||||||
return populateOverrideUsernames(customer)
|
return populateOverrideUsernames(customer)
|
||||||
.then(camelize)
|
.then(camelize)
|
||||||
.then(it => ({ ...it, notes: it.notes.map(camelize) }))
|
.then(it => ({ ...it, notes: (it.notes ?? []).map(camelize) }))
|
||||||
}, customers)))
|
}, customers)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -723,7 +723,7 @@ function getCustomerById (id) {
|
||||||
})
|
})
|
||||||
.then(populateOverrideUsernames)
|
.then(populateOverrideUsernames)
|
||||||
.then(camelize)
|
.then(camelize)
|
||||||
.then(it => ({ ...it, notes: it.notes.map(camelize) }))
|
.then(it => ({ ...it, notes: (it.notes ?? []).map(camelize) }))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ exports.up = function (next) {
|
||||||
created TIMESTAMPTZ NOT NULL DEFAULT now(),
|
created TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||||
last_edited_at TIMESTAMPTZ,
|
last_edited_at TIMESTAMPTZ,
|
||||||
last_edited_by UUID REFERENCES users(id),
|
last_edited_by UUID REFERENCES users(id),
|
||||||
title TEXT NOT NULL DEFAULT ''
|
title TEXT NOT NULL DEFAULT '',
|
||||||
content TEXT NOT NULL DEFAULT ''
|
content TEXT NOT NULL DEFAULT ''
|
||||||
)`
|
)`
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -426,7 +426,7 @@ const CustomerData = ({
|
||||||
<span className={classes.separator}>Custom data entry</span>
|
<span className={classes.separator}>Custom data entry</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{customRequirements && (
|
{!R.isEmpty(customRequirements) && (
|
||||||
<div className={classes.wrapper}>
|
<div className={classes.wrapper}>
|
||||||
<span className={classes.separator}>Custom requirements</span>
|
<span className={classes.separator}>Custom requirements</span>
|
||||||
<Grid container>
|
<Grid container>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue