@supernova-studio/client 0.2.2 → 0.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -303,7 +303,7 @@ function parseAsCustomBlock(
303
303
  return null;
304
304
  }
305
305
 
306
- const parsedItems = itemsJson.map(i => parseItem(i, definition));
306
+ const parsedItems = itemsJson.map(i => parseItem(i, definition)).filter(nonNullFilter);
307
307
 
308
308
  return {
309
309
  id: id,
@@ -329,7 +329,7 @@ function parseItem(rawItem: unknown, definition: PageBlockDefinition): PageBlock
329
329
  for (const property of definition.item.properties) {
330
330
  const value = parsedItem.data.props[property.id];
331
331
  if (!value) {
332
- return null;
332
+ continue;
333
333
  }
334
334
 
335
335
  // Validate