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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frappe-ui",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "A set of components and utilities for rapid UI development",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -118,9 +118,9 @@ export function createListResource(options, vm, getResource) {
118
118
  fieldname: values,
119
119
  }
120
120
  },
121
- onSuccess(data) {
122
- out.list.fetch()
123
- options.setValue?.onSuccess?.call(vm, data)
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 (typeof returnValue != null) {
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 (typeof returnValue != null) {
158
+ if (returnValue != null) {
159
159
  return returnValue
160
160
  }
161
161
  }