Skip to content

Commit

Permalink
Update src/ui/src/components/core/root/CoreRoot.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Rousseau <[email protected]>
  • Loading branch information
ramedina86 and madeindjs authored Sep 16, 2024
1 parent 0e142ab commit 83f6115
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/src/components/core/root/CoreRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ watch(displayedPageId, (newPageId) => {
}
nextTick().then(() => {
window.scrollTo(0, 0);
const rendererEl = document.querySelector(".ComponentRenderer");
rendererEl.parentElement.scrollTo(0, 0);
document.querySelector(".ComponentRenderer")?.parentElement?.scrollTo(0, 0);

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.11)

Replace `.querySelector(".ComponentRenderer")` with `⏎↹↹↹.querySelector(".ComponentRenderer")⏎↹↹↹`

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.10)

Replace `.querySelector(".ComponentRenderer")` with `⏎↹↹↹.querySelector(".ComponentRenderer")⏎↹↹↹`

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.12)

Replace `.querySelector(".ComponentRenderer")` with `⏎↹↹↹.querySelector(".ComponentRenderer")⏎↹↹↹`

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.9)

Replace `.querySelector(".ComponentRenderer")` with `⏎↹↹↹.querySelector(".ComponentRenderer")⏎↹↹↹`

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.11)

Replace `.querySelector(".ComponentRenderer")` with `?????.querySelector(".ComponentRenderer")?????`

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.9)

Replace `.querySelector(".ComponentRenderer")` with `⏎↹↹↹.querySelector(".ComponentRenderer")⏎↹↹↹`

Check failure on line 122 in src/ui/src/components/core/root/CoreRoot.vue

View workflow job for this annotation

GitHub Actions / build (3.10)

Replace `.querySelector(".ComponentRenderer")` with `⏎↹↹↹.querySelector(".ComponentRenderer")⏎↹↹↹`
});
changePageInHash(pageKey);
});
Expand Down

0 comments on commit 83f6115

Please sign in to comment.