file note should reload after uploading new revision

This commit is contained in:
zadam 2023-07-14 17:55:28 +02:00
parent c3f5bb5518
commit 3d0c3652ce

View file

@ -85,4 +85,10 @@ export default class FileTypeWidget extends TypeWidget {
this.$previewNotAvailable.show();
}
}
async entitiesReloadedEvent({loadResults}) {
if (loadResults.isNoteReloaded(this.noteId)) {
this.refresh();
}
}
}