Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit d24e103

Browse files
committed
typo
1 parent 6ba8774 commit d24e103

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/reducers/DatabaseDispatch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
528528
return state;
529529
}
530530

531-
export function getDispatch(initialState: TableDataType) {
532-
const [state, dataDispatch] = useReducer(databaseReducer, initialState);
531+
export function getDispatch(tableData: TableDataType) {
532+
const [state, dataDispatch] = useReducer(databaseReducer, tableData);
533533

534534
useEffect(() => {
535535
dataDispatch({ type: ActionTypes.ENABLE_RESET });

src/mock/mockTableUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function makeData(count: number): Promise<TableDataType> {
2020
const row = {
2121
id: faker.mersenne.rand(),
2222
title: faker.system.fileName(),
23-
note: note,
23+
__note__: note,
2424
};
2525
options.push({ label: row.title, backgroundColor: randomColor() });
2626

0 commit comments

Comments
 (0)