Skip to content

Commit db86e63

Browse files
authored
Merge pull request #39 from easeq/master
Fixed incorrect isEditing key to editing in table config
2 parents 2809b9e + 6c637ac commit db86e63

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flipbyte/redux-datatable",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "React-Redux data table",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/createTable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ReduxDatatable = ({ config = {}, reducerName, tableData = {}, action, thun
2525

2626
const [ isPrinting, setIsPrinting ] = useState(false);
2727
const [ visibleColumnIds, setVisibleColumnIds ] = useState(getInitialVisibleColumns(columns));
28-
const [ isEditing, setIsEditing ] = useState(!!config.isEditing);
28+
const [ isEditing, setIsEditing ] = useState(!!config.editing);
2929
const [ minWidth ] = useState(calculateWidth(columns));
3030
const [ scrollData, setScrollData ] = useState({ top: 0, pointerEvents: '', left: 0 });
3131
const [ tableWidth, setTableWidth ] = useState({ width: minWidth, widthAdjustment: 1 });
@@ -48,7 +48,7 @@ const ReduxDatatable = ({ config = {}, reducerName, tableData = {}, action, thun
4848
return [ ...result, column ];
4949
}, [])
5050
};
51-
51+
5252
// Fetch data and populate table on first load.
5353
useEffect(() => {
5454
loadData();

0 commit comments

Comments
 (0)