@codeleap/web 3.10.3 → 3.10.4

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": "@codeleap/web",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "main": "src/index.ts",
5
5
  "repository": {
6
6
  "url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
@@ -97,14 +97,13 @@ export function Grid<T = any>(props: GridProps<T>) {
97
97
  variantStyles={variantStyles}
98
98
  >
99
99
  <GridMasonry
100
- items={data}
101
- columnGutter={columnItemsSpacing}
102
- rowGutter={rowItemsSpacing}
103
- overscanBy={overscan}
100
+ items={data || []}
104
101
  render={renderItem}
105
- onRender={onLoadMore}
106
102
  itemKey={item => item?.id}
103
+ columnGutter={columnItemsSpacing}
104
+ rowGutter={rowItemsSpacing}
107
105
  columnCount={numColumns}
106
+ onRender={onLoadMore}
108
107
  {...masonryProps}
109
108
  />
110
109
  </ListLayout>
@@ -96,12 +96,11 @@ export function List<T = any>(props: ListProps<T>) {
96
96
  variantStyles={variantStyles}
97
97
  >
98
98
  <ListMasonry
99
- items={data}
100
- rowGutter={rowItemsSpacing}
101
- overscanBy={overscan}
99
+ items={data || []}
102
100
  render={renderItem}
103
- onRender={onLoadMore}
104
101
  itemKey={item => item?.id}
102
+ rowGutter={rowItemsSpacing}
103
+ onRender={onLoadMore}
105
104
  {...masonryProps}
106
105
  />
107
106
  </ListLayout>