Fixed the refresh bug

This commit is contained in:
Hein
2025-10-30 14:53:42 +02:00
parent 0ba8dca0b4
commit abcf08f98e
4 changed files with 18 additions and 16 deletions

View File

@@ -80,7 +80,7 @@ const MenuItemRenderer = ({ children, label, ...props }: MantineBetterMenuInstan
props.onClick?.(e);
if (props.onClickAsync) {
setLoading(true);
props.onClickAsync().finally(() => setLoading(false));
props.onClickAsync(e).finally(() => setLoading(false));
}
}}
styles={{