@stoker-platform/web-app 0.5.249 → 0.5.251
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/Form.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.251
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: provide record ID to form condition method
|
|
8
|
+
|
|
9
|
+
## 0.5.250
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix: remove image fields from duplicated record
|
|
14
|
+
|
|
3
15
|
## 0.5.249
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
package/src/Form.tsx
CHANGED
|
@@ -393,7 +393,7 @@ const RecordFormField = (props: FieldProps) => {
|
|
|
393
393
|
}, [])
|
|
394
394
|
|
|
395
395
|
useEffect(() => {
|
|
396
|
-
const condition = tryFunction(admin?.condition?.form, [operation, form.getValues()])
|
|
396
|
+
const condition = tryFunction(admin?.condition?.form, [operation, { ...form.getValues(), id: record?.id }])
|
|
397
397
|
if (condition === false) {
|
|
398
398
|
setCondition(false)
|
|
399
399
|
return
|
|
@@ -4677,6 +4677,7 @@ function RecordForm({
|
|
|
4677
4677
|
field.type !== "Computed" &&
|
|
4678
4678
|
!(field.type === "Number" && field.autoIncrement) &&
|
|
4679
4679
|
!(collection.auth && field.name === "User_ID") &&
|
|
4680
|
+
!tryFunction(fieldCustomization.admin?.image) &&
|
|
4680
4681
|
restrictCreateAccess(field, permissions, collection.labels.collection, userClaims) &&
|
|
4681
4682
|
fieldCustomization.custom?.initialValue === undefined
|
|
4682
4683
|
) {
|