fix(views/table): scroll lost when updating data

This commit is contained in:
Elian Doran 2025-07-04 21:22:13 +03:00
parent af296a1e4e
commit ef80f104c0
No known key found for this signature in database

View File

@ -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);