diff --git a/lerna.json b/lerna.json
index 9d520d1970..a4b80ecff1 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"npmClient": "yarn",
"packages": [
"packages/*"
diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json
index 2c32e5d951..d8926e5518 100644
--- a/packages/backend-core/package.json
+++ b/packages/backend-core/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/backend-core",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"description": "Budibase backend core libraries used in server and worker",
"main": "src/index.js",
"author": "Budibase",
diff --git a/packages/bbui/package.json b/packages/bbui/package.json
index 36449f2661..2b7acf4567 100644
--- a/packages/bbui/package.json
+++ b/packages/bbui/package.json
@@ -1,7 +1,7 @@
{
"name": "@budibase/bbui",
"description": "A UI solution used in the different Budibase projects.",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"license": "MPL-2.0",
"svelte": "src/index.js",
"module": "dist/bbui.es.js",
@@ -38,7 +38,7 @@
],
"dependencies": {
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
- "@budibase/string-templates": "^1.0.105-alpha.22",
+ "@budibase/string-templates": "^1.0.105-alpha.23",
"@spectrum-css/actionbutton": "^1.0.1",
"@spectrum-css/actiongroup": "^1.0.1",
"@spectrum-css/avatar": "^3.0.2",
diff --git a/packages/builder/package.json b/packages/builder/package.json
index 711123304b..e408f069ae 100644
--- a/packages/builder/package.json
+++ b/packages/builder/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/builder",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"license": "GPL-3.0",
"private": true,
"scripts": {
@@ -65,10 +65,10 @@
}
},
"dependencies": {
- "@budibase/bbui": "^1.0.105-alpha.22",
- "@budibase/client": "^1.0.105-alpha.22",
- "@budibase/frontend-core": "^1.0.105-alpha.22",
- "@budibase/string-templates": "^1.0.105-alpha.22",
+ "@budibase/bbui": "^1.0.105-alpha.23",
+ "@budibase/client": "^1.0.105-alpha.23",
+ "@budibase/frontend-core": "^1.0.105-alpha.23",
+ "@budibase/string-templates": "^1.0.105-alpha.23",
"@sentry/browser": "5.19.1",
"@spectrum-css/page": "^3.0.1",
"@spectrum-css/vars": "^3.0.1",
diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/DeleteRow.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/DeleteRow.svelte
index 35a1a6ec86..0ca5bfaa76 100644
--- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/DeleteRow.svelte
+++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ButtonActionEditor/actions/DeleteRow.svelte
@@ -26,14 +26,6 @@
on:change={value => (parameters.rowId = value.detail)}
/>
-
- (parameters.revId = value.detail)}
- />
-
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 287da83811..3398deb9e0 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/cli",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"description": "Budibase CLI, for developers, self hosting and migrations.",
"main": "src/index.js",
"bin": {
diff --git a/packages/client/package.json b/packages/client/package.json
index b5da0317cb..c83a9bf16b 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/client",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"license": "MPL-2.0",
"module": "dist/budibase-client.js",
"main": "dist/budibase-client.js",
@@ -19,9 +19,9 @@
"dev:builder": "rollup -cw"
},
"dependencies": {
- "@budibase/bbui": "^1.0.105-alpha.22",
- "@budibase/frontend-core": "^1.0.105-alpha.22",
- "@budibase/string-templates": "^1.0.105-alpha.22",
+ "@budibase/bbui": "^1.0.105-alpha.23",
+ "@budibase/frontend-core": "^1.0.105-alpha.23",
+ "@budibase/string-templates": "^1.0.105-alpha.23",
"@spectrum-css/button": "^3.0.3",
"@spectrum-css/card": "^3.0.3",
"@spectrum-css/divider": "^1.0.3",
diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js
index f851a623c0..4e35cb2e54 100644
--- a/packages/client/src/utils/buttonActions.js
+++ b/packages/client/src/utils/buttonActions.js
@@ -81,7 +81,7 @@ const duplicateRowHandler = async (action, context) => {
const deleteRowHandler = async action => {
const { tableId, revId, rowId } = action.parameters
- if (tableId && revId && rowId) {
+ if (tableId && rowId) {
try {
await API.deleteRow({ tableId, rowId, revId })
notificationStore.actions.success("Row deleted")
diff --git a/packages/frontend-core/package.json b/packages/frontend-core/package.json
index 3c362aa799..ebb93a710b 100644
--- a/packages/frontend-core/package.json
+++ b/packages/frontend-core/package.json
@@ -1,12 +1,12 @@
{
"name": "@budibase/frontend-core",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"description": "Budibase frontend core libraries used in builder and client",
"author": "Budibase",
"license": "MPL-2.0",
"svelte": "src/index.js",
"dependencies": {
- "@budibase/bbui": "^1.0.105-alpha.22",
+ "@budibase/bbui": "^1.0.105-alpha.23",
"lodash": "^4.17.21",
"svelte": "^3.46.2"
}
diff --git a/packages/frontend-core/src/api/rows.js b/packages/frontend-core/src/api/rows.js
index 6a0d278cf7..9f980678c5 100644
--- a/packages/frontend-core/src/api/rows.js
+++ b/packages/frontend-core/src/api/rows.js
@@ -35,7 +35,7 @@ export const buildRowEndpoints = API => ({
* @param revId the rev of the row to delete
*/
deleteRow: async ({ tableId, rowId, revId }) => {
- if (!tableId || !rowId || !revId) {
+ if (!tableId || !rowId) {
return
}
return await API.delete({
diff --git a/packages/server/package.json b/packages/server/package.json
index 41cd58c2ab..078a544f52 100644
--- a/packages/server/package.json
+++ b/packages/server/package.json
@@ -1,7 +1,7 @@
{
"name": "@budibase/server",
"email": "hi@budibase.com",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"description": "Budibase Web Server",
"main": "src/index.ts",
"repository": {
@@ -68,9 +68,9 @@
"license": "GPL-3.0",
"dependencies": {
"@apidevtools/swagger-parser": "^10.0.3",
- "@budibase/backend-core": "^1.0.105-alpha.22",
- "@budibase/client": "^1.0.105-alpha.22",
- "@budibase/string-templates": "^1.0.105-alpha.22",
+ "@budibase/backend-core": "^1.0.105-alpha.23",
+ "@budibase/client": "^1.0.105-alpha.23",
+ "@budibase/string-templates": "^1.0.105-alpha.23",
"@bull-board/api": "^3.7.0",
"@bull-board/koa": "^3.7.0",
"@elastic/elasticsearch": "7.10.0",
diff --git a/packages/server/src/api/controllers/row/internal.js b/packages/server/src/api/controllers/row/internal.js
index 68ff4ca88d..d8e18df43b 100644
--- a/packages/server/src/api/controllers/row/internal.js
+++ b/packages/server/src/api/controllers/row/internal.js
@@ -259,8 +259,9 @@ exports.find = async ctx => {
exports.destroy = async function (ctx) {
const db = getAppDB()
- const { _id, _rev } = ctx.request.body
+ const { _id } = ctx.request.body
let row = await db.get(_id)
+ let _rev = ctx.request.body._rev || row._rev
if (row.tableId !== ctx.params.tableId) {
throw "Supplied tableId doesn't match the row's tableId"
diff --git a/packages/server/src/automations/steps/deleteRow.js b/packages/server/src/automations/steps/deleteRow.js
index e41e5ad263..1e9acc5a41 100644
--- a/packages/server/src/automations/steps/deleteRow.js
+++ b/packages/server/src/automations/steps/deleteRow.js
@@ -24,12 +24,8 @@ exports.definition = {
type: "string",
title: "Row ID",
},
- revision: {
- type: "string",
- title: "Row Revision",
- },
},
- required: ["tableId", "id", "revision"],
+ required: ["tableId", "id"],
},
outputs: {
properties: {
@@ -53,7 +49,7 @@ exports.definition = {
}
exports.run = async function ({ inputs, appId, emitter }) {
- if (inputs.id == null || inputs.revision == null) {
+ if (inputs.id == null) {
return {
success: false,
response: {
diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json
index c66160a81a..1ea21f7900 100644
--- a/packages/string-templates/package.json
+++ b/packages/string-templates/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/string-templates",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"description": "Handlebars wrapper for Budibase templating.",
"main": "src/index.cjs",
"module": "dist/bundle.mjs",
diff --git a/packages/worker/package.json b/packages/worker/package.json
index 9c22341cc3..5a3ca2a711 100644
--- a/packages/worker/package.json
+++ b/packages/worker/package.json
@@ -1,7 +1,7 @@
{
"name": "@budibase/worker",
"email": "hi@budibase.com",
- "version": "1.0.105-alpha.22",
+ "version": "1.0.105-alpha.23",
"description": "Budibase background service",
"main": "src/index.ts",
"repository": {
@@ -31,8 +31,8 @@
"author": "Budibase",
"license": "GPL-3.0",
"dependencies": {
- "@budibase/backend-core": "^1.0.105-alpha.22",
- "@budibase/string-templates": "^1.0.105-alpha.22",
+ "@budibase/backend-core": "^1.0.105-alpha.23",
+ "@budibase/string-templates": "^1.0.105-alpha.23",
"@koa/router": "^8.0.0",
"@sentry/node": "^6.0.0",
"@techpass/passport-openidconnect": "^0.3.0",