fix(docsearch): limit number of searches retrieved
This commit is contained in:
parent
fea16e3a93
commit
9bac38cc96
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ export function createStoredSearches<TItem extends StoredDocSearchHit>({
|
|||
limit = 5,
|
||||
}: CreateStoredSearchesOptions): StoredSearchPlugin<TItem> {
|
||||
const storage = createStorage<TItem>(key);
|
||||
let items = storage.getItem();
|
||||
let items = storage.getItem().slice(0, limit);
|
||||
|
||||
return {
|
||||
add(item: TItem) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue