mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
got rid of .isDeleted on froca entities (the property is not available there)
This commit is contained in:
@@ -191,10 +191,10 @@ export default class AttachmentDetailWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
async entitiesReloadedEvent({loadResults}) {
|
||||
const attachmentChange = loadResults.getAttachmentRows().find(att => att.attachmentId === this.attachment.attachmentId);
|
||||
const attachmentRow = loadResults.getAttachmentRows().find(att => att.attachmentId === this.attachment.attachmentId);
|
||||
|
||||
if (attachmentChange) {
|
||||
if (attachmentChange.isDeleted) {
|
||||
if (attachmentRow) {
|
||||
if (attachmentRow.isDeleted) {
|
||||
this.toggleInt(false);
|
||||
} else {
|
||||
this.refresh();
|
||||
|
||||
Reference in New Issue
Block a user