authscape 1.0.260 → 1.0.261

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/index.js CHANGED
@@ -986,6 +986,8 @@ var EditableDatagrid = function EditableDatagrid(_ref) {
986
986
  rowsPerPage = _ref$rowsPerPage === void 0 ? [25, 50, 100] : _ref$rowsPerPage,
987
987
  _ref$rowHeight = _ref.rowHeight,
988
988
  rowHeight = _ref$rowHeight === void 0 ? 70 : _ref$rowHeight,
989
+ _ref$key = _ref.key,
990
+ key = _ref$key === void 0 ? null : _ref$key,
989
991
  _ref$onRowClick = _ref.onRowClick,
990
992
  onRowClick = _ref$onRowClick === void 0 ? null : _ref$onRowClick;
991
993
  var _useState = (0, _react.useState)([]),
@@ -1075,6 +1077,7 @@ var EditableDatagrid = function EditableDatagrid(_ref) {
1075
1077
  }, /*#__PURE__*/_react["default"].createElement(_xDataGrid.DataGrid, {
1076
1078
  rows: rows,
1077
1079
  sx: sx,
1080
+ key: key,
1078
1081
  columns: columns,
1079
1082
  rowCount: totalRows,
1080
1083
  onRowClick: onRowClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.260",
3
+ "version": "1.0.261",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import React, {useEffect, useState} from 'react';
2
2
  import { DataGrid, GridActionsCellItem } from "@mui/x-data-grid";
3
3
  import { Box } from '@mui/material';
4
4
 
5
- export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns, isCellEditable = null, onCellEdited = null, sx = {}, height="50vh", pageSize = 50, rowsPerPage = [25, 50, 100], rowHeight = 70, onRowClick = null}) => {
5
+ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns, isCellEditable = null, onCellEdited = null, sx = {}, height="50vh", pageSize = 50, rowsPerPage = [25, 50, 100], rowHeight = 70, key = null, onRowClick = null}) => {
6
6
 
7
7
  const [rows, setRows] = useState([]);
8
8
  const [totalRows, setTotalRows] = useState(0);
@@ -55,6 +55,7 @@ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns,
55
55
  <DataGrid
56
56
  rows={rows}
57
57
  sx={sx}
58
+ key={key}
58
59
  columns={columns}
59
60
  rowCount={totalRows}
60
61
  onRowClick={onRowClick}
@@ -63,7 +64,6 @@ export const EditableDatagrid = ({loadedUser, url = null, eRows = null, columns,
63
64
  return rowHeight;
64
65
  }}
65
66
  pageSize={pageSize}
66
-
67
67
  onPageChange={(newPage) => setOffset(newPage)}
68
68
  rowsPerPageOptions={rowsPerPage}
69
69
  disableSelectionOnClick={true}