From 87414b839a5f055c48a46efbfcc921b0f81fca4b Mon Sep 17 00:00:00 2001 From: rizky Date: Tue, 13 Aug 2024 01:46:42 -0700 Subject: [PATCH] fixing load item --- preset/profile/Profile.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/preset/profile/Profile.tsx b/preset/profile/Profile.tsx index 62111e4..5edb46a 100755 --- a/preset/profile/Profile.tsx +++ b/preset/profile/Profile.tsx @@ -19,13 +19,13 @@ export const Profile: FC = ({ const local = useLocal( { item: {} as any, - }, async () => { if (!isEditor) { - const item = await on_load({ + const item = await on_load({ params: {}, }); + local.item = item; local.render(); } else { local.item = detail({}); @@ -43,7 +43,7 @@ export const Profile: FC = ({ on_load, detail, on_update, - internal: local + internal: local, }} > {child}