frappe-ui 0.0.78 → 0.0.79
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
|
@@ -118,9 +118,9 @@ export function createListResource(options, vm, getResource) {
|
|
|
118
118
|
fieldname: values,
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
-
onSuccess(
|
|
122
|
-
out.
|
|
123
|
-
options.setValue?.onSuccess?.call(vm,
|
|
121
|
+
onSuccess(doc) {
|
|
122
|
+
updateRowInListResource(out.doctype, doc)
|
|
123
|
+
options.setValue?.onSuccess?.call(vm, doc)
|
|
124
124
|
},
|
|
125
125
|
onError: options.setValue?.onError,
|
|
126
126
|
},
|
|
@@ -182,7 +182,7 @@ export function createListResource(options, vm, getResource) {
|
|
|
182
182
|
function transform(data) {
|
|
183
183
|
if (options.transform) {
|
|
184
184
|
let returnValue = options.transform.call(vm, data)
|
|
185
|
-
if (
|
|
185
|
+
if (returnValue != null) {
|
|
186
186
|
return returnValue
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -155,7 +155,7 @@ export function createResource(options, vm, getResource) {
|
|
|
155
155
|
function transform(data) {
|
|
156
156
|
if (options.transform) {
|
|
157
157
|
let returnValue = options.transform.call(vm, data)
|
|
158
|
-
if (
|
|
158
|
+
if (returnValue != null) {
|
|
159
159
|
return returnValue
|
|
160
160
|
}
|
|
161
161
|
}
|