@steedos/service-plugin-amis 2.2.38 → 2.2.39

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.
@@ -91,7 +91,7 @@ function lookupToAmisPicker(field, readonly){
91
91
  if(api.data.$term){
92
92
  filters = [["name", "contains", "'+ api.data.$term +'"]];
93
93
  }else if(selfData.op === 'loadOptions' && selfData.value){
94
- filters = [["${valueField}", "=", selfData.value]];
94
+ filters = [["${valueField.name}", "=", selfData.value]];
95
95
  }
96
96
  if(allowSearchFields){
97
97
  allowSearchFields.forEach(function(key){
@@ -108,7 +108,7 @@ exports.getTableApi = function(mainObject, fields){
108
108
  if(api.data.$term){
109
109
  filters = [["name", "contains", "'+ api.data.$term +'"]];
110
110
  }else if(selfData.op === 'loadOptions' && selfData.value){
111
- filters = [["${valueField}", "=", selfData.value]];
111
+ filters = [["${valueField.name}", "=", selfData.value]];
112
112
  }
113
113
  if(allowSearchFields){
114
114
  allowSearchFields.forEach(function(key){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.2.38",
3
+ "version": "2.2.39",
4
4
  "main": "package.service.js",
5
5
  "scripts": {},
6
6
  "license": "MIT",
@@ -8,5 +8,5 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "gitHead": "5e1bc5194e4a65dc19853ed0c948cea3dc5d01b7"
11
+ "gitHead": "9b26b926ccd65fc82b12bf2b8fec070f222f3c7a"
12
12
  }