mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
refactor(views/board): unnecessary re-render
This commit is contained in:
@@ -403,10 +403,8 @@ export default class BoardView extends ViewMode<BoardData> {
|
||||
const noteIds = columnItems.map(item => item.note.noteId);
|
||||
|
||||
// Use the API to rename the column (update all notes)
|
||||
// This will trigger onEntitiesReloaded which will automatically refresh the board
|
||||
await this.api?.renameColumn(oldValue, newValue, noteIds);
|
||||
|
||||
// Refresh the board to reflect the changes
|
||||
await this.renderList();
|
||||
} catch (error) {
|
||||
console.error("Failed to rename column:", error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user