fix: Impersonation issue from userstable (#18608)

* fix: visible error in the userlist handler

* Uncommit yarn.lock

* update
This commit is contained in:
Anik Dhabal Babu
2025-01-17 14:04:41 +00:00
committed by GitHub
parent be2e1274ff
commit 8cc61a1fe9
@@ -121,8 +121,7 @@ function UsersTableBare() {
});
const handleImpersonateUser = async (username: string | null) => {
await signIn("impersonation-auth", { redirect: false, username: username });
router.push(`/event-types`);
await signIn("impersonation-auth", { username: username, callbackUrl: `${WEBAPP_URL}/event-types` });
};
//we must flatten the array of arrays from the useInfiniteQuery hook