mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
fix: scrollIntoView is not a function in lab page (#6266)
This commit is contained in:
parent
039c66bd24
commit
c3c45d8d57
1 changed files with 5 additions and 2 deletions
|
|
@ -298,8 +298,11 @@ export function Content() {
|
|||
setAccordionValue([initialSelectedCollection]);
|
||||
setTimeout(() => {
|
||||
const link = containerRef.current!.querySelector(`a[href$="${queryParamsOperationId}"]`);
|
||||
link!.scrollIntoView();
|
||||
setIsScrolled(true);
|
||||
|
||||
if (link) {
|
||||
link.scrollIntoView();
|
||||
setIsScrolled(true);
|
||||
}
|
||||
}, 150);
|
||||
}, [initialSelectedCollection]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue