forked from baron/baron-sso
fix(ci): update Node 24 and playwright workers, fix user detail queries on create
This commit is contained in:
@@ -276,7 +276,7 @@ function UserDetailPage() {
|
||||
} = useQuery({
|
||||
queryKey: ["user", userId],
|
||||
queryFn: () => fetchUser(userId),
|
||||
enabled: userId.length > 0,
|
||||
enabled: userId.length > 0 && userId !== "new",
|
||||
});
|
||||
|
||||
const { data: tenantsData } = useQuery({
|
||||
@@ -288,7 +288,7 @@ function UserDetailPage() {
|
||||
const rpHistoryQuery = useQuery({
|
||||
queryKey: ["user-rp-history", userId],
|
||||
queryFn: () => fetchUserRpHistory(userId),
|
||||
enabled: !!userId,
|
||||
enabled: !!userId && userId !== "new",
|
||||
});
|
||||
|
||||
const { data: passwordPolicy } = useQuery({
|
||||
|
||||
Reference in New Issue
Block a user