@statezero/core 0.1.21 → 0.1.22

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.
@@ -221,6 +221,9 @@ export class QuerysetStore {
221
221
  modelClass: this.modelClass,
222
222
  });
223
223
  const { data, included } = response;
224
+ if (isNil(data)) {
225
+ return;
226
+ }
224
227
  console.log(`[${id}] Sync fetch completed. Received: ${JSON.stringify(data)}.`);
225
228
  // Persists all the instances (including nested instances) to the model store
226
229
  processIncludedEntities(modelStoreRegistry, included, this.modelClass);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statezero/core",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "module": "ESNext",
6
6
  "description": "The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate",