Browse Source

fix: no longer using old app detail cover when switch pathname (#13585)

tags/1.0.0
kimjion 8 months ago
parent
commit
6529240da6
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx

+ 2
- 1
web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx View File

@@ -146,7 +146,8 @@ const AppDetailLayout: FC<IAppDetailLayoutProps> = (props) => {
})
}
}
}, [appDetailRes, appId, getNavigations, isCurrentWorkspaceEditor, isLoadingAppDetail, isLoadingCurrentWorkspace, pathname, router, setAppDetail, systemFeatures.enable_web_sso_switch_component])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [appDetailRes, appId, getNavigations, isCurrentWorkspaceEditor, isLoadingAppDetail, isLoadingCurrentWorkspace, router, setAppDetail, systemFeatures.enable_web_sso_switch_component])

useUnmount(() => {
setAppDetail()

Loading…
Cancel
Save