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

Commit bf995af

Browse files
committed
reset table
1 parent c9b4245 commit bf995af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/modals/ColumnModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConfigColumn, TableColumn } from "cdm/FolderModel";
1+
import { TableColumn } from "cdm/FolderModel";
22
import { DatabaseView } from "DatabaseView";
33
import { Modal } from "obsidian";
44
import { add_setting_header } from "settings/SettingsComponents";

src/components/reducers/DatabaseDispatch.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
437437
);
438438

439439
return update(state, {
440+
skipReset: { $set: true },
440441
columns: {
441442
[toggleInlineIndex]: {
442443
config: {
@@ -445,6 +446,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
445446
},
446447
},
447448
});
449+
448450
default:
449451
LOGGER.warn(`<=> databaseReducer: unknown action ${action.type}`);
450452
}

0 commit comments

Comments
 (0)