@budibase/frontend-core 2.15.7 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "2.
|
|
10
|
-
"@budibase/shared-core": "2.
|
|
9
|
+
"@budibase/bbui": "2.16.0",
|
|
10
|
+
"@budibase/shared-core": "2.16.0",
|
|
11
11
|
"dayjs": "^1.10.8",
|
|
12
12
|
"lodash": "4.17.21",
|
|
13
13
|
"socket.io-client": "^4.6.1",
|
|
14
14
|
"svelte": "^3.49.0"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "daca8ebdf51da1a4364f04de2d409d4139d5dd53"
|
|
17
17
|
}
|
package/src/api/rows.js
CHANGED
|
@@ -19,11 +19,12 @@ export const buildRowEndpoints = API => ({
|
|
|
19
19
|
* @param suppressErrors whether or not to suppress error notifications
|
|
20
20
|
*/
|
|
21
21
|
saveRow: async (row, suppressErrors = false) => {
|
|
22
|
-
|
|
22
|
+
const resourceId = row?._viewId || row?.tableId
|
|
23
|
+
if (!resourceId) {
|
|
23
24
|
return
|
|
24
25
|
}
|
|
25
26
|
return await API.post({
|
|
26
|
-
url: `/api/${
|
|
27
|
+
url: `/api/${resourceId}/rows`,
|
|
27
28
|
body: row,
|
|
28
29
|
suppressErrors,
|
|
29
30
|
})
|
|
@@ -35,11 +36,12 @@ export const buildRowEndpoints = API => ({
|
|
|
35
36
|
* @param suppressErrors whether or not to suppress error notifications
|
|
36
37
|
*/
|
|
37
38
|
patchRow: async (row, suppressErrors = false) => {
|
|
38
|
-
|
|
39
|
+
const resourceId = row?._viewId || row?.tableId
|
|
40
|
+
if (!resourceId) {
|
|
39
41
|
return
|
|
40
42
|
}
|
|
41
43
|
return await API.patch({
|
|
42
|
-
url: `/api/${
|
|
44
|
+
url: `/api/${resourceId}/rows`,
|
|
43
45
|
body: row,
|
|
44
46
|
suppressErrors,
|
|
45
47
|
})
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { getColumnIcon } from "../lib/utils"
|
|
14
14
|
import MigrationModal from "../controls/MigrationModal.svelte"
|
|
15
15
|
import { debounce } from "../../../utils/utils"
|
|
16
|
-
import { FieldType,
|
|
16
|
+
import { FieldType, FormulaType } from "@budibase/types"
|
|
17
17
|
import { TableNames } from "../../../constants"
|
|
18
18
|
|
|
19
19
|
export let column
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
const { type, formulaType } = col.schema
|
|
97
97
|
return (
|
|
98
98
|
searchableTypes.includes(type) ||
|
|
99
|
-
(type === FieldType.FORMULA && formulaType ===
|
|
99
|
+
(type === FieldType.FORMULA && formulaType === FormulaType.STATIC)
|
|
100
100
|
)
|
|
101
101
|
}
|
|
102
102
|
|