mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #4766 from Infisical/fix/folder-navigation-ui-bug
[ENG-3998] fix: folder navigation ui bug
This commit is contained in:
@@ -277,7 +277,11 @@ export const OverviewPage = () => {
|
||||
});
|
||||
|
||||
const isFilteredByResources = Object.values(filter).some(Boolean);
|
||||
const { isPending: isOverviewLoading, data: overview } = useGetProjectSecretsOverview(
|
||||
const {
|
||||
isPending: isOverviewLoading,
|
||||
data: overview,
|
||||
isFetching: isOverviewFetching
|
||||
} = useGetProjectSecretsOverview(
|
||||
{
|
||||
projectId,
|
||||
environments: visibleEnvs.map((env) => env.slug),
|
||||
@@ -631,6 +635,8 @@ export const OverviewPage = () => {
|
||||
};
|
||||
|
||||
const handleFolderClick = (path: string) => {
|
||||
if (isOverviewFetching) return;
|
||||
|
||||
// store for breadcrumb nav to restore previously used filters
|
||||
setFilterHistory((prev) => {
|
||||
const curr = new Map(prev);
|
||||
|
||||
Reference in New Issue
Block a user