mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
rename loadresults methods/properties for clarity that they don't contain entities, only rows
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import utils from "../services/utils.js";
|
||||
import AttachmentActionsWidget from "./buttons/attachments_actions.js";
|
||||
import BasicWidget from "./basic_widget.js";
|
||||
import server from "../services/server.js";
|
||||
import options from "../services/options.js";
|
||||
import imageService from "../services/image.js";
|
||||
import linkService from "../services/link.js";
|
||||
@@ -192,7 +191,7 @@ export default class AttachmentDetailWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
async entitiesReloadedEvent({loadResults}) {
|
||||
const attachmentChange = loadResults.getAttachments().find(att => att.attachmentId === this.attachment.attachmentId);
|
||||
const attachmentChange = loadResults.getAttachmentRows().find(att => att.attachmentId === this.attachment.attachmentId);
|
||||
|
||||
if (attachmentChange) {
|
||||
if (attachmentChange.isDeleted) {
|
||||
|
||||
Reference in New Issue
Block a user