1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Updating formatting.

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

View file

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

View file

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

View file

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