- @if (totalSuggestions === 0) {
+ @if (novelSuggestions === 0 && reusableSuggestions === 0) {
No novel suggestions
}
- @if (suggestions()?.suggested_tags.length > 0) {
+ @if (suggestions()?.suggested_tags?.length > 0) {
Tags
@for (tag of suggestions().suggested_tags; track tag) {
}
}
- @if (suggestions()?.suggested_document_types.length > 0) {
+ @if (suggestions()?.suggested_document_types?.length > 0) {
Document Types
@for (type of suggestions().suggested_document_types; track type) {
}
}
- @if (suggestions()?.suggested_correspondents.length > 0) {
+ @if (suggestions()?.suggested_correspondents?.length > 0) {
Correspondents
@for (correspondent of suggestions().suggested_correspondents; track correspondent) {
}
}
+ @if (reusableSuggestions > 0) {
+
+ {reusableSuggestions, plural, =1 {1 existing value suggested below} other {{{reusableSuggestions}} existing values suggested below}}
+
+ }