- 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
{:else}
diff --git a/packages/server/src/api/controllers/table.js b/packages/server/src/api/controllers/table.js
index df3acaff8a..f6fb2b7627 100644
--- a/packages/server/src/api/controllers/table.js
+++ b/packages/server/src/api/controllers/table.js
@@ -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({
diff --git a/packages/server/src/db/utils.js b/packages/server/src/db/utils.js
index d4027df528..f44173bb25 100644
--- a/packages/server/src/db/utils.js
+++ b/packages/server/src/db/utils.js
@@ -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 {