mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
[Notebook] Fixing pages with no entries breaking search (#3791)
* also added result count to search results
This commit is contained in:
parent
cf2b8b3c8a
commit
46f7f6dd04
@ -430,7 +430,7 @@ export default {
|
||||
}
|
||||
|
||||
// check for no entries first
|
||||
if (entries[section.id]) {
|
||||
if (entries[section.id] && entries[section.id][page.id]) {
|
||||
const pageEntries = entries[section.id][page.id];
|
||||
|
||||
pageEntries.forEach(entry => {
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
<template>
|
||||
<div class="c-notebook__search-results">
|
||||
<div class="c-notebook__search-results__header">Search Results</div>
|
||||
<div class="c-notebook__search-results__header">Search Results ({{ results.length }})</div>
|
||||
<div class="c-notebook__entries">
|
||||
<NotebookEntry v-for="(result, index) in results"
|
||||
:key="index"
|
||||
|
Loading…
Reference in New Issue
Block a user