[PAI-923] fix: implemented fetch key functions for auth layouts #8067

This commit is contained in:
Akshita Goyal 2025-11-06 18:50:45 +05:30 committed by GitHub
parent fd38b9b6d8
commit 37aabe7d1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 96 additions and 31 deletions

View file

@ -64,7 +64,7 @@ export const ProjectSettingsMemberDefaults: React.FC<TProjectSettingsMemberDefau
const { reset, control } = useForm<IProject>({ defaultValues });
// fetching user members
useSWR(
workspaceSlug && projectId ? PROJECT_MEMBERS(projectId) : null,
workspaceSlug && projectId ? PROJECT_MEMBERS(workspaceSlug, projectId) : null,
workspaceSlug && projectId ? () => fetchProjectDetails(workspaceSlug, projectId) : null
);