Compare with undefined directly instead of using typeof (S7741)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d143d4cc3
commit
1c8ac09184
3 files changed
+3
-3
No files matched your search
@@ -254,7 +254,7 @@ watch(
|
|||||||
|
|
||||||
watch(showTraceId, (newValue, oldValue) => {
|
watch(showTraceId, (newValue, oldValue) => {
|
||||||
const isScrollTop = document.querySelector(".infiniteTable");
|
const isScrollTop = document.querySelector(".infiniteTable");
|
||||||
if (isScrollTop && typeof isScrollTop.scrollTop !== "undefined")
|
if (isScrollTop && isScrollTop.scrollTop !== undefined)
|
||||||
if (newValue !== oldValue) isScrollTop.scrollTop = 0;
|
if (newValue !== oldValue) isScrollTop.scrollTop = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ watch(infinit404, (newValue) => {
|
|||||||
|
|
||||||
watch(showTraceId, (newValue, oldValue) => {
|
watch(showTraceId, (newValue, oldValue) => {
|
||||||
const isScrollTop = document.querySelector(".infiniteTable");
|
const isScrollTop = document.querySelector(".infiniteTable");
|
||||||
if (isScrollTop && typeof isScrollTop.scrollTop !== "undefined")
|
if (isScrollTop && isScrollTop.scrollTop !== undefined)
|
||||||
if (newValue !== oldValue) isScrollTop.scrollTop = 0;
|
if (newValue !== oldValue) isScrollTop.scrollTop = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ watch(
|
|||||||
|
|
||||||
watch(showTraceId, (newValue, oldValue) => {
|
watch(showTraceId, (newValue, oldValue) => {
|
||||||
const isScrollTop = document.querySelector(".infiniteTable");
|
const isScrollTop = document.querySelector(".infiniteTable");
|
||||||
if (isScrollTop && typeof isScrollTop.scrollTop !== "undefined")
|
if (isScrollTop && isScrollTop.scrollTop !== undefined)
|
||||||
if (newValue !== oldValue) isScrollTop.scrollTop = 0;
|
if (newValue !== oldValue) isScrollTop.scrollTop = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user