Updating formatting.
This commit is contained in:
parent
408eda81ff
commit
4e000a8904
|
@ -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>
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue