@linzjs/step-ag-grid 17.6.0 → 17.7.0
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/dist/node_modules/@linzjs/lui/dist/assets/svg-content.d.ts +1 -1
- package/dist/step-ag-grid.cjs.js +3 -2
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +3 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +7 -6
- package/src/contexts/GridContextProvider.tsx +2 -1
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -4212,7 +4212,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
4212
4212
|
function unsafeStringify(arr, offset = 0) {
|
|
4213
4213
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
4214
4214
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
4215
|
-
return
|
|
4215
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
4216
4216
|
}
|
|
4217
4217
|
|
|
4218
4218
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
@@ -4593,7 +4593,8 @@ const GridContextProvider = (props) => {
|
|
|
4593
4593
|
* Used to check if it's OK to autosize.
|
|
4594
4594
|
*/
|
|
4595
4595
|
const gridRenderState = useCallback(() => {
|
|
4596
|
-
|
|
4596
|
+
// Even though getModel can't be null, sometimes it is
|
|
4597
|
+
if (!gridApi || !gridApi.getModel())
|
|
4597
4598
|
return null;
|
|
4598
4599
|
if (!gridApi.getModel().isRowsToRender())
|
|
4599
4600
|
return "empty";
|