mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-29 17:40:05 +03:00
ref: clean up
This commit is contained in:
parent
e77fedf5db
commit
fb50e2b427
|
@ -259,7 +259,6 @@ export class MenuStore {
|
||||||
) {
|
) {
|
||||||
// item here can be a copy from search results so find corresponding item from menu
|
// item here can be a copy from search results so find corresponding item from menu
|
||||||
const menuItem = (item && this.getItemById(item.id)) || item;
|
const menuItem = (item && this.getItemById(item.id)) || item;
|
||||||
console.log('activateAndScroll', menuItem?.id, updateLocation, rewriteHistory);
|
|
||||||
this.activate(menuItem, updateLocation, rewriteHistory);
|
this.activate(menuItem, updateLocation, rewriteHistory);
|
||||||
this.scrollToActive();
|
this.scrollToActive();
|
||||||
if (!menuItem || !menuItem.items.length) {
|
if (!menuItem || !menuItem.items.length) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user