Skip to content

Commit

Permalink
Fixed undefined collection name (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljymsgutierrez authored Jul 2, 2024
1 parent ede61dc commit 5c9ec56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions packages/dist/arm-js-library.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Z from "lodash";
import * as K from "mobx";
import { v1 as z } from "uuid";
import ss from "crypto-js";
const { makeObservable: es, observable: F, action: N, toJS: k } = K, {
const { makeObservable: es, observable: F, action: k, toJS: N } = K, {
get: i,
set: h,
find: H,
Expand Down Expand Up @@ -69,10 +69,10 @@ class us {
collections: F,
aliases: F,
requestHashIds: F,
_pushPayloadToCollection: N,
_pushRequestHash: N,
_addCollection: N,
_addAlias: N
_pushPayloadToCollection: k,
_pushRequestHash: k,
_addCollection: k,
_addAlias: k
});
}
_initializeAxiosConfig() {
Expand Down Expand Up @@ -104,9 +104,9 @@ class us {
_setProperty(s, e) {
h(this, s, e);
const t = C(
k(this.originalRecord),
N(this.originalRecord),
E
), a = C(k(this), E);
), a = C(N(this), E);
_(t, a) ? (h(this, "isDirty", !1), h(this, "isPristine", !0)) : (h(this, "isDirty", !0), h(this, "isPristine", !1));
}
_setProperties(s) {
Expand All @@ -119,9 +119,9 @@ class us {
const t = e(s);
f(t, ({ key: d, value: n }) => h(this, d, n));
const a = C(
k(this.originalRecord),
N(this.originalRecord),
E
), r = C(k(this), E);
), r = C(N(this), E);
_(a, r) ? (h(this, "isDirty", !1), h(this, "isPristine", !0)) : (h(this, "isDirty", !0), h(this, "isPristine", !1));
}
unloadRecord(s) {
Expand Down Expand Up @@ -201,7 +201,7 @@ class us {
_injectReferenceKeys(s, e, t = null) {
const a = is(t) ? this._generateHashId({
id: i(e, "id"),
collectionName: i(e, "collectionName")
collectionName: s
}) : t;
h(e, "collectionName", s), h(e, "hashId", a), h(e, "isLoading", !1), h(e, "isError", !1), h(e, "isPristine", !0), h(e, "isDirty", !1);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dist/arm-js-library.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/src/lib/api-resource-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default class ApiResourceManager {
const recordHashId = isNull(collectionRecordHashId)
? this._generateHashId({
id: getProperty(collectionRecord, 'id'),
collectionName: getProperty(collectionRecord, 'collectionName'),
collectionName: collectionName,
})
: collectionRecordHashId

Expand Down

0 comments on commit 5c9ec56

Please sign in to comment.