Initialize result to null and remove redundant await in MoreModal switchCaseData
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -297,7 +297,7 @@ async function switchCaseData(id) {
|
||||
maxItems.value = false;
|
||||
startNum.value = 0;
|
||||
|
||||
let result;
|
||||
let result = null;
|
||||
if (props.category === "issue")
|
||||
result = await conformanceStore.getConformanceTraceDetail(
|
||||
props.listNo,
|
||||
@@ -310,7 +310,7 @@ async function switchCaseData(id) {
|
||||
id,
|
||||
0,
|
||||
);
|
||||
infiniteData.value = await result;
|
||||
infiniteData.value = result;
|
||||
showTraceId.value = id; // Set after getDetail so the case table finishes loading before switching showTraceId
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user