rename loadresults methods/properties for clarity that they don't contain entities, only rows

This commit is contained in:
zadam
2023-06-05 16:12:02 +02:00
parent 57702a07a2
commit e6bf6424e8
36 changed files with 71 additions and 74 deletions

View File

@@ -1082,7 +1082,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
const noteIdsToUpdate = new Set();
const noteIdsToReload = new Set();
for (const ecAttr of loadResults.getAttributes()) {
for (const ecAttr of loadResults.getAttributeRows()) {
const dirtyingLabels = ['iconClass', 'cssClass', 'workspace', 'workspaceIconClass', 'color'];
if (ecAttr.type === 'label' && dirtyingLabels.includes(ecAttr.name)) {
@@ -1124,10 +1124,10 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
let movedActiveNode = null;
let parentsOfAddedNodes = [];
const allBranches = loadResults.getBranches();
const allBranchesDeleted = allBranches.every(branch => !!branch.isDeleted);
const allBranchRows = loadResults.getBranchRows();
const allBranchesDeleted = allBranchRows.every(branch => !!branch.isDeleted);
for (const ecBranch of allBranches) {
for (const ecBranch of allBranchRows) {
if (ecBranch.parentNoteId === '_share') {
// all shared notes have a sign in the tree, even the descendants of shared notes
noteIdsToReload.add(ecBranch.noteId);