'reactdatagrid.io checkboxColumn Cannot read properties of undefined (reading 'showInContextMenu')

After adding the checkboxColumn property to my ReactDataGrid, empty extra columns are added to my table when the column order is changed. On clicking the context menu icon in any of the column headers the following exception occurs: "Cannot read properties of undefined (reading 'showInContextMenu')"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source