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;
|
||||
|
||||
@@ -364,7 +364,7 @@ async function switchDataLayerType(type, option) {
|
||||
* @param {object} e - Object containing the trace id.
|
||||
*/
|
||||
async function switchTraceId(e) {
|
||||
if (e.id == traceId.value) return;
|
||||
if (e.id === traceId.value) return;
|
||||
isLoading.value = true;
|
||||
traceId.value = e.id;
|
||||
await allMapDataStore.getTraceDetail();
|
||||
|
||||
@@ -360,7 +360,7 @@ async function switchDataLayerType(type, option) {
|
||||
* @param {object} e - Object containing the trace id.
|
||||
*/
|
||||
async function switchTraceId(e) {
|
||||
if (e.id == traceId.value) return;
|
||||
if (e.id === traceId.value) return;
|
||||
isLoading.value = true;
|
||||
traceId.value = e.id;
|
||||
await allMapDataStore.getTraceDetail();
|
||||
|
||||
Reference in New Issue
Block a user