Updating formatting.

This commit is contained in:
mike12345567 2020-10-12 17:56:40 +01:00
parent 51ed75978b
commit b0cea4c091
3 changed files with 4 additions and 10 deletions

View File

@ -88,8 +88,8 @@
<div class="root">
{#if idFields.length === 0}
<div class="cannot-use">
Update row can only be used within a component that provides data, such
as a List
Update row can only be used within a component that provides data, such as
a List
</div>
{:else}
<Label size="m" color="dark">Datasource</Label>

View File

@ -116,9 +116,7 @@ exports.destroy = async function(ctx) {
include_docs: true,
})
)
await db.bulkDocs(
rows.rows.map(row => ({ ...row.doc, _deleted: true }))
)
await db.bulkDocs(rows.rows.map(row => ({ ...row.doc, _deleted: true })))
// update linked rows
await linkRows.updateLinks({

View File

@ -63,11 +63,7 @@ exports.generateTableID = () => {
* @param {object} otherProps Any other properties to add to the request.
* @returns {object} Parameters which can then be used with an allDocs request.
*/
exports.getRowParams = (
tableId = null,
rowId = null,
otherProps = {}
) => {
exports.getRowParams = (tableId = null, rowId = null, otherProps = {}) => {
if (tableId == null) {
return getDocParams(DocumentTypes.ROW, null, otherProps)
} else {