@insticc/react-datagrid-2 1.0.33 → 1.0.34
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/build/wrapper/index.js +3 -0
- package/package.json +1 -1
package/build/wrapper/index.js
CHANGED
|
@@ -104,6 +104,9 @@ var DataGrid = function DataGrid(_ref) {
|
|
|
104
104
|
setOpen = _useState8[1];
|
|
105
105
|
//optionally access the underlying virtualizer instance
|
|
106
106
|
var rowVirtualizerInstanceRef = (0, _react.useRef)(null);
|
|
107
|
+
if (gridHelper && (gridHelper.content || !gridHelper.title)) {
|
|
108
|
+
throw new Error("The 'gridHelper' prop object is expected to contain both 'title' and 'content' properties. Ensure that both are provided if 'gridHelper' is defined.");
|
|
109
|
+
}
|
|
107
110
|
|
|
108
111
|
// get the selected rows (if is a int that means that the row is selected if is a double that means that is a subrow)
|
|
109
112
|
// so if is a subrow we need to go to the parent row and get the id that is on the position after the .
|