mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(views/table): scroll lost when updating data
This commit is contained in:
parent
af296a1e4e
commit
ef80f104c0
@ -257,7 +257,7 @@ export default class TableView extends ViewMode<StateInfo> {
|
||||
|
||||
const notes = await froca.getNotes(this.args.noteIds);
|
||||
const info = getPromotedAttributeInformation(this.parentNote);
|
||||
this.api.setData(await buildRowDefinitions(this.parentNote, notes, info));
|
||||
this.api.replaceData(await buildRowDefinitions(this.parentNote, notes, info));
|
||||
|
||||
if (this.noteIdToEdit) {
|
||||
const row = this.api?.getRows(true).find(r => r.getData().noteId === this.noteIdToEdit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user