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.
@@ -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), k = {
7968
- ...u,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.309",
3
+ "version": "1.4.310",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {