Replace loose equality (==) with strict equality (===) for ID comparisons
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -291,7 +291,7 @@ function progressWidth(value) {
|
||||
* @param {number} id case id
|
||||
*/
|
||||
async function switchCaseData(id) {
|
||||
if (id == showTraceId.value) return;
|
||||
if (id === showTraceId.value) return;
|
||||
infinite404.value = null;
|
||||
maxItems.value = false;
|
||||
startNum.value = 0;
|
||||
|
||||
@@ -352,7 +352,7 @@ function progressWidth(value) {
|
||||
*/
|
||||
async function switchCaseData(id, count) {
|
||||
// Do nothing if clicking the same id
|
||||
if (id == showTraceId.value) return;
|
||||
if (id === showTraceId.value) return;
|
||||
isLoading.value = true; // Always show loading screen
|
||||
infinit404.value = null;
|
||||
infinitMaxItems.value = false;
|
||||
|
||||
@@ -243,7 +243,7 @@ function progressWidth(value) {
|
||||
*/
|
||||
async function switchCaseData(id, count) {
|
||||
// Do nothing if clicking the same id
|
||||
if (id == showTraceId.value) return;
|
||||
if (id === showTraceId.value) return;
|
||||
isLoading.value = true; // Always show loading screen
|
||||
infinit404.value = null;
|
||||
infinitMaxItems.value = false;
|
||||
|
||||
Reference in New Issue
Block a user