bt-core-app 1.4.309 → 1.4.310
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/dist/bt-core-app.js +2 -5
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -7964,11 +7964,8 @@ function Xc(e) {
|
|
|
7964
7964
|
return u.onGetSaveAsync ?? (u.onGetSaveAsync = (M) => M), u.onCanSaveAsync ?? (u.onCanSaveAsync = () => Promise.resolve(void 0)), u.getMode ?? (u.getMode = (M) => M.id == null ? "new" : "edit"), b == null && u.nav != null && (b = Cr({ nav: u.nav })), b != null ? u.onSaveAsync ?? (u.onSaveAsync = async (M) => {
|
|
7965
7965
|
if (M == null)
|
|
7966
7966
|
return;
|
|
7967
|
-
const x = u.getMode(M)
|
|
7968
|
-
|
|
7969
|
-
data: M
|
|
7970
|
-
};
|
|
7971
|
-
return x == "new" ? await b().post(k) : await b().patch(k);
|
|
7967
|
+
const x = u.getMode(M);
|
|
7968
|
+
return u.data = M, x == "new" ? await b().post(u) : await b().patch(u);
|
|
7972
7969
|
}) : u.onSaveAsync ?? (u.onSaveAsync = (M) => {
|
|
7973
7970
|
const x = C.findIndex((k) => k.id == M.id);
|
|
7974
7971
|
return x >= 0 ? C.splice(x, 1, M) : C.push(M), Promise.resolve(M);
|
package/package.json
CHANGED