Remove unnecessary await on non-Promise values in FunnelFilter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 19:38:58 +08:00
parent 542b941efb
commit 35d5b07b07

View File

@@ -128,10 +128,10 @@ async function deleteRule(index) {
ruleData.value = []; ruleData.value = [];
if (tempFilterId.value) { if (tempFilterId.value) {
isLoading.value = true; isLoading.value = true;
tempFilterId.value = await null; tempFilterId.value = null;
await allMapDataStore.getAllMapData(); await allMapDataStore.getAllMapData();
await allMapDataStore.getAllTrace(); // SidebarTrace needs to update in sync await allMapDataStore.getAllTrace(); // SidebarTrace needs to update in sync
await emit("submit-all"); emit("submit-all");
isLoading.value = false; isLoading.value = false;
} }
$toast.success("Filter(s) deleted."); $toast.success("Filter(s) deleted.");
@@ -157,9 +157,9 @@ async function submitAll() {
await allMapDataStore.getAllMapData(); await allMapDataStore.getAllMapData();
await allMapDataStore.getAllTrace(); // SidebarTrace needs to update in sync await allMapDataStore.getAllTrace(); // SidebarTrace needs to update in sync
if (temporaryData.value[0]?.type) { if (temporaryData.value[0]?.type) {
allMapDataStore.traceId = await allMapDataStore.traces[0]?.id; allMapDataStore.traceId = allMapDataStore.traces[0]?.id;
} }
await emit("submit-all"); emit("submit-all");
isLoading.value = false; isLoading.value = false;
$toast.success("Filter(s) applied."); $toast.success("Filter(s) applied.");
return; return;