fix: project settings form not loading new data while switching between projects
This commit is contained in:
parent
447a8bc2f8
commit
6e702d6cc7
2 changed files with 12 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ const GeneralSettingsPage: NextPageWithLayout = observer(() => {
|
|||
const { workspaceSlug, projectId } = router.query;
|
||||
// api call to fetch project details
|
||||
useSWR(
|
||||
workspaceSlug && projectId ? "PROJECT_DETAILS" : null,
|
||||
workspaceSlug && projectId ? `PROJECT_DETAILS_${projectId}` : null,
|
||||
workspaceSlug && projectId
|
||||
? () => projectStore.fetchProjectDetails(workspaceSlug.toString(), projectId.toString())
|
||||
: null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue