fix(lint): resolve floating promise warnings

This commit is contained in:
zetaloop
2026-03-01 22:53:48 +08:00
parent 05c5d05148
commit aae83bce44
9 changed files with 59 additions and 45 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ function OrderListContent({
useEffect(() => {
let cancelled = false
;(async () => {
void (async () => {
try {
const items = await Promise.resolve(listOrders())
if (cancelled) return
@@ -106,7 +106,7 @@ function OrderListContent({
useEffect(() => {
let cancelled = false
;(async () => {
void (async () => {
try {
const items = await Promise.resolve(listChatSessions())
if (cancelled) return