@evlop/commons 1.0.161 → 1.0.162

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"useCollectionRecord.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionRecord.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,mBAAmB,mBAAqB,MAAM,MAAM,MAAM,QAwBtE,CAAC"}
1
+ {"version":3,"file":"useCollectionRecord.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionRecord.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,mBAAmB,mBAAqB,MAAM,MAAM,MAAM,QAyBtE,CAAC"}
@@ -20,6 +20,8 @@ const useCollectionRecord = (collectionName, id) => {
20
20
  }, [collectionName]);
21
21
  const record = react_redux_1.useSelector((state) => lodash_1.get(state.collection, [key, 'cache', id], defaultValue));
22
22
  const load = react_1.useCallback(() => {
23
+ if (!id)
24
+ return;
23
25
  return dispatch(reducers_1.collectionGetRecord(collectionName, id))
24
26
  .then((r) => r.response);
25
27
  }, [dispatch, collectionName, id]);
@@ -1 +1 @@
1
- {"version":3,"file":"useCollectionRecord.js","sourceRoot":"","sources":["../../../src/hooks/useCollectionRecord.tsx"],"names":[],"mappings":";;;AAAA,iCAAwD;AACxD,6CAAuD;AACvD,mCAA6B;AAC7B,0CAA0E;AAE1E,wCAAmC;AAEnC,MAAM,YAAY,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAElC,MAAM,mBAAmB,GAAG,CAAE,cAAsB,EAAE,EAAU,EAAE,EAAE;IACvE,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,GAAG,GAAG,IAAI,cAAc,EAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,eAAO,CAAC,GAAE,EAAE;QAChC,IAAG,CAAC,cAAc;YAAE,OAAO;QAC3B,MAAM,KAAK,GAAG,QAAQ,CAAC,gCAAqB,CAAC,cAAc,CAAC,CAAC,CAAA;QAC7D,IAAG,KAAK;YAAE,OAAO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