-
- @if (displayFields.includes(DisplayField.CORRESPONDENT) && document.correspondent) {
- @if (clickCorrespondent.observers.length ) {
- {{(document.correspondent$ | async)?.name}}
- } @else {
- {{(document.correspondent$ | async)?.name}}
+
+ @if (document) {
+ @if (displayFields.includes(DisplayField.CORRESPONDENT) && document.correspondent) {
+ @if (clickCorrespondent.observers.length ) {
+ {{(document.correspondent$ | async)?.name}}
+ } @else {
+ {{(document.correspondent$ | async)?.name}}
+ }
+ @if (displayFields.includes(DisplayField.TITLE)) {:}
}
- @if (displayFields.includes(DisplayField.TITLE)) {:}
- }
- @if (displayFields.includes(DisplayField.TITLE)) {
- {{document.title | documentTitle}}
- }
- @if (displayFields.includes(DisplayField.TAGS)) {
- @for (t of document.tags$ | async; track t) {
-
+ @if (displayFields.includes(DisplayField.TITLE)) {
+ {{document.title | documentTitle}}
}
+ @if (displayFields.includes(DisplayField.TAGS)) {
+ @for (t of document.tags$ | async; track t) {
+
+ }
+ }
+ } @else {
+
}
- @if (document.__search_hit__ && document.__search_hit__.highlights) {
-
- }
- @for (highlight of searchNoteHighlights; track highlight) {
-
-
-
-
- }
- @if (!document.__search_hit__?.score) {
- {{contentTrimmed}}
+ @if (document) {
+ @if (document.__search_hit__ && document.__search_hit__.highlights) {
+
+ }
+ @for (highlight of searchNoteHighlights; track highlight) {
+
+
+
+
+ }
+ @if (!document.__search_hit__?.score) {
+ {{contentTrimmed}}
+ }
+ } @else {
+
+
+
}
-
+
+ @if (document) {
@if (displayFields.includes(DisplayField.NOTES) && notesEnabled && document.notes.length) {
}
}
-
+ } @else {
+
+
+
+
+
+ }