mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 23:28:17 +00:00
feat: ran lint and review comments addressed
This commit is contained in:
@@ -25,8 +25,8 @@ import {
|
||||
ProjectPermissionActions,
|
||||
ProjectPermissionDynamicSecretActions,
|
||||
ProjectPermissionSub,
|
||||
useProjectPermission,
|
||||
useProject
|
||||
useProject,
|
||||
useProjectPermission
|
||||
} from "@app/context";
|
||||
import {
|
||||
ProjectPermissionCommitsActions,
|
||||
@@ -50,10 +50,10 @@ import { useGetProjectSecretsDetails } from "@app/hooks/api/dashboard";
|
||||
import { DashboardSecretsOrderBy } from "@app/hooks/api/dashboard/types";
|
||||
import { useGetFolderCommitsCount } from "@app/hooks/api/folderCommits";
|
||||
import { OrderByDirection } from "@app/hooks/api/generic/types";
|
||||
import { ProjectVersion } from "@app/hooks/api/projects/types";
|
||||
import { PendingAction } from "@app/hooks/api/secretFolders/types";
|
||||
import { useCreateCommit } from "@app/hooks/api/secrets/mutations";
|
||||
import { SecretV3RawSanitized } from "@app/hooks/api/types";
|
||||
import { ProjectVersion } from "@app/hooks/api/projects/types";
|
||||
import { usePathAccessPolicies } from "@app/hooks/usePathAccessPolicies";
|
||||
import { useResizableColWidth } from "@app/hooks/useResizableColWidth";
|
||||
import { hasSecretReadValueOrDescribePermission } from "@app/lib/fn/permission";
|
||||
@@ -148,7 +148,7 @@ const Page = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (isBatchMode && projectId && environment && secretPath) {
|
||||
loadPendingChanges({ projectId: projectId, environment, secretPath });
|
||||
loadPendingChanges({ projectId, environment, secretPath });
|
||||
}
|
||||
}, [isBatchMode, projectId, environment, secretPath, loadPendingChanges]);
|
||||
|
||||
@@ -248,7 +248,7 @@ const Page = () => {
|
||||
navigate({
|
||||
to: "/projects/secret-management/$projectId/overview",
|
||||
params: {
|
||||
projectId: projectId
|
||||
projectId
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -262,7 +262,7 @@ const Page = () => {
|
||||
isFetched
|
||||
} = useGetProjectSecretsDetails({
|
||||
environment,
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
secretPath,
|
||||
offset,
|
||||
limit,
|
||||
@@ -316,7 +316,7 @@ const Page = () => {
|
||||
|
||||
// fetch imported secrets to show user the overriden ones
|
||||
const { data: importedSecrets } = useGetImportedSecretsSingleEnv({
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
environment,
|
||||
path: secretPath,
|
||||
options: {
|
||||
@@ -416,7 +416,7 @@ const Page = () => {
|
||||
navigate({
|
||||
to: "/projects/secret-management/$projectId/commits/$environment/$folderId",
|
||||
params: {
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
folderId,
|
||||
environment
|
||||
},
|
||||
@@ -647,7 +647,7 @@ const Page = () => {
|
||||
? change.tags?.map((tag) => ({
|
||||
id: tag.id,
|
||||
slug: tag.slug,
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString(),
|
||||
__v: 0
|
||||
@@ -955,7 +955,7 @@ const Page = () => {
|
||||
secretImports={imports}
|
||||
isFetching={isDetailsFetching}
|
||||
environment={environment}
|
||||
workspaceId={projectId}
|
||||
projectId={projectId}
|
||||
secretPath={secretPath}
|
||||
importedSecrets={importedSecrets}
|
||||
/>
|
||||
@@ -964,7 +964,7 @@ const Page = () => {
|
||||
<FolderListView
|
||||
folders={mergedFolders}
|
||||
environment={environment}
|
||||
workspaceId={projectId}
|
||||
projectId={projectId}
|
||||
secretPath={secretPath}
|
||||
onNavigateToFolder={handleResetFilter}
|
||||
canNavigate={isFetched}
|
||||
@@ -999,7 +999,7 @@ const Page = () => {
|
||||
<CommitForm
|
||||
onCommit={handleCreateCommit}
|
||||
environment={environment}
|
||||
workspaceId={projectId}
|
||||
projectId={projectId}
|
||||
secretPath={secretPath}
|
||||
isCommitting={isCommitPending}
|
||||
/>
|
||||
|
||||
+3
-3
@@ -55,9 +55,9 @@ import {
|
||||
ProjectPermissionActions,
|
||||
ProjectPermissionDynamicSecretActions,
|
||||
ProjectPermissionSub,
|
||||
useProject,
|
||||
useProjectPermission,
|
||||
useSubscription,
|
||||
useProject
|
||||
useSubscription
|
||||
} from "@app/context";
|
||||
import {
|
||||
ProjectPermissionCommitsActions,
|
||||
@@ -635,7 +635,7 @@ export const ActionBar = ({
|
||||
queryKey: secretKeys.getProjectSecret({ projectId, environment, secretPath })
|
||||
});
|
||||
queryClient.invalidateQueries({});
|
||||
queryKey: dashboardKeys.getDashboardSecrets({ projectId, secretPath });
|
||||
dashboardKeys.getDashboardSecrets({ projectId, secretPath });
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: secretApprovalRequestKeys.count({ projectId })
|
||||
});
|
||||
|
||||
+3
-3
@@ -14,7 +14,7 @@ import {
|
||||
SelectItem
|
||||
} from "@app/components/v2";
|
||||
import { SecretPathInput } from "@app/components/v2/SecretPathInput";
|
||||
import { useSubscription, useProject } from "@app/context";
|
||||
import { useProject, useSubscription } from "@app/context";
|
||||
import { useCreateSecretImport } from "@app/hooks/api";
|
||||
|
||||
const typeSchema = z.object({
|
||||
@@ -43,7 +43,7 @@ type Props = {
|
||||
|
||||
export const CreateSecretImportForm = ({
|
||||
environment,
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
secretPath = "/",
|
||||
isOpen,
|
||||
onClose,
|
||||
@@ -77,7 +77,7 @@ export const CreateSecretImportForm = ({
|
||||
|
||||
await createSecretImport({
|
||||
environment,
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
path: secretPath,
|
||||
isReplication,
|
||||
import: {
|
||||
|
||||
+3
-3
@@ -64,7 +64,7 @@ type SecretStructure = {
|
||||
|
||||
export const ReplicateFolderFromBoard = ({
|
||||
environments = [],
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
isOpen,
|
||||
onToggle,
|
||||
onParsedEnv
|
||||
@@ -82,14 +82,14 @@ export const ReplicateFolderFromBoard = ({
|
||||
const [debouncedEnvCopySecretPath] = useDebounce(envCopySecPath);
|
||||
|
||||
const { data: accessibleSecrets } = useGetAccessibleSecrets({
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
secretPath: "/",
|
||||
environment: selectedEnvSlug.slug,
|
||||
recursive: true,
|
||||
filterByAction: shouldIncludeValues
|
||||
? ProjectPermissionSecretActions.ReadValue
|
||||
: ProjectPermissionSecretActions.DescribeSecret,
|
||||
options: { enabled: Boolean(workspaceId) && Boolean(selectedEnvSlug) && isOpen }
|
||||
options: { enabled: Boolean(projectId) && Boolean(selectedEnvSlug) && isOpen }
|
||||
});
|
||||
|
||||
const restructureSecrets = useMemo(() => {
|
||||
|
||||
+9
-11
@@ -25,14 +25,14 @@ interface CommitFormProps {
|
||||
onCommit: (changes: PendingChanges, commitMessage: string) => Promise<void>;
|
||||
isCommitting?: boolean;
|
||||
environment: string;
|
||||
workspaceId: string;
|
||||
projectId: string;
|
||||
secretPath: string;
|
||||
}
|
||||
|
||||
interface ResourceChangeProps {
|
||||
change: PendingChange;
|
||||
environment: string;
|
||||
workspaceId: string;
|
||||
projectId: string;
|
||||
secretPath: string;
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ const RenderFolderChanges = ({ onDiscard, change }: RenderResourceProps) => {
|
||||
const ResourceChange: React.FC<ResourceChangeProps> = ({
|
||||
change,
|
||||
environment,
|
||||
workspaceId,
|
||||
projectId,
|
||||
secretPath
|
||||
}) => {
|
||||
const { removePendingChange } = useBatchModeActions();
|
||||
@@ -245,7 +245,7 @@ const ResourceChange: React.FC<ResourceChangeProps> = ({
|
||||
const handleDeletePending = useCallback(
|
||||
(changeType: string, id: string) => {
|
||||
removePendingChange(id, changeType, {
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -272,7 +272,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
onCommit,
|
||||
isCommitting = false,
|
||||
environment,
|
||||
workspaceId,
|
||||
projectId,
|
||||
secretPath
|
||||
}) => {
|
||||
const { isBatchMode, pendingChanges, totalChangesCount } = useBatchMode();
|
||||
@@ -291,7 +291,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
}
|
||||
await onCommit(pendingChanges, commitMessage);
|
||||
clearAllPendingChanges({
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -335,9 +335,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
<div className="ml-6 mt-0.5 flex items-center gap-3">
|
||||
<Button
|
||||
size="sm"
|
||||
onClick={() =>
|
||||
clearAllPendingChanges({ projectId: workspaceId, environment, secretPath })
|
||||
}
|
||||
onClick={() => clearAllPendingChanges({ projectId, environment, secretPath })}
|
||||
isDisabled={totalChangesCount === 0}
|
||||
variant="outline_bg"
|
||||
className="px-4 hover:border-red/40 hover:bg-red/[0.1]"
|
||||
@@ -393,7 +391,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
key={change.id}
|
||||
change={change}
|
||||
environment={environment}
|
||||
workspaceId={workspaceId}
|
||||
projectId={projectId}
|
||||
secretPath={secretPath}
|
||||
/>
|
||||
))}
|
||||
@@ -414,7 +412,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
key={change.id}
|
||||
change={change}
|
||||
environment={environment}
|
||||
workspaceId={workspaceId}
|
||||
projectId={projectId}
|
||||
secretPath={secretPath}
|
||||
/>
|
||||
))}
|
||||
|
||||
+3
-3
@@ -133,7 +133,7 @@ export const CompareEnvironments = ({ secretPath }: Props) => {
|
||||
setUserTablePreference("secretCompareTable", PreferenceKey.PerPage, newPerPage);
|
||||
};
|
||||
|
||||
const workspaceId = currentProject.id;
|
||||
const projectId = currentProject.id;
|
||||
const [searchFilter, setSearchFilter] = useState("");
|
||||
const [debouncedSearchFilter] = useDebounce(searchFilter);
|
||||
const [debouncedSelectedEnvironments] = useDebounce(selectedEnvironments);
|
||||
@@ -151,7 +151,7 @@ export const CompareEnvironments = ({ secretPath }: Props) => {
|
||||
getImportedSecretByKey,
|
||||
getEnvImportedSecretKeyCount
|
||||
} = useGetImportedSecretsAllEnvs({
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
path: secretPath,
|
||||
environments: (currentProject.environments || []).map(({ slug }) => slug)
|
||||
});
|
||||
@@ -163,7 +163,7 @@ export const CompareEnvironments = ({ secretPath }: Props) => {
|
||||
const isFilteredByResources = Object.values(filter).some(Boolean);
|
||||
const { isPending: isOverviewLoading, data: overview } = useGetProjectSecretsOverview(
|
||||
{
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environments: compareEnvironments.map((env) => env.slug),
|
||||
secretPath,
|
||||
orderDirection,
|
||||
|
||||
+2
-2
@@ -24,8 +24,8 @@ import { ROUTE_PATHS } from "@app/const/routes";
|
||||
import {
|
||||
ProjectPermissionActions,
|
||||
ProjectPermissionSub,
|
||||
useSubscription,
|
||||
useProject
|
||||
useProject,
|
||||
useSubscription
|
||||
} from "@app/context";
|
||||
import { usePopUp } from "@app/hooks";
|
||||
import { projectKeys } from "@app/hooks/api";
|
||||
|
||||
+8
-8
@@ -33,7 +33,7 @@ import { FolderForm } from "../ActionBar/FolderForm";
|
||||
type Props = {
|
||||
folders?: TSecretFolder[];
|
||||
environment: string;
|
||||
workspaceId: string;
|
||||
projectId: string;
|
||||
secretPath?: string;
|
||||
onNavigateToFolder: (path: string) => void;
|
||||
canNavigate: boolean;
|
||||
@@ -42,7 +42,7 @@ type Props = {
|
||||
export const FolderListView = ({
|
||||
folders = [],
|
||||
environment,
|
||||
workspaceId,
|
||||
projectId,
|
||||
secretPath = "/",
|
||||
onNavigateToFolder,
|
||||
canNavigate
|
||||
@@ -89,7 +89,7 @@ export const FolderListView = ({
|
||||
};
|
||||
|
||||
addPendingChange(updatedCreate, {
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -106,7 +106,7 @@ export const FolderListView = ({
|
||||
};
|
||||
|
||||
addPendingChange(updateChange, {
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -121,7 +121,7 @@ export const FolderListView = ({
|
||||
name: newFolderName,
|
||||
path: secretPath,
|
||||
environment,
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
description: newFolderDescription
|
||||
});
|
||||
handlePopUpClose("updateFolder");
|
||||
@@ -140,7 +140,7 @@ export const FolderListView = ({
|
||||
|
||||
const handleDeletePending = (id: string) => {
|
||||
removePendingChange(id, "folder", {
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -161,7 +161,7 @@ export const FolderListView = ({
|
||||
};
|
||||
|
||||
addPendingChange(pendingFolderDelete, {
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -174,7 +174,7 @@ export const FolderListView = ({
|
||||
folderId: folderData.id,
|
||||
path: secretPath,
|
||||
environment,
|
||||
projectId: workspaceId
|
||||
projectId
|
||||
});
|
||||
|
||||
handlePopUpClose("deleteFolder");
|
||||
|
||||
+4
-4
@@ -46,14 +46,14 @@ type Props = {
|
||||
onToggle: (isOpen: boolean) => void;
|
||||
onParsedEnv: (env: Record<string, { value: string; comments: string[] }>) => void;
|
||||
environments?: { name: string; slug: string }[];
|
||||
workspaceId: string;
|
||||
projectId: string;
|
||||
environment: string;
|
||||
secretPath: string;
|
||||
};
|
||||
|
||||
export const CopySecretsFromBoard = ({
|
||||
environments = [],
|
||||
workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath,
|
||||
isOpen,
|
||||
@@ -81,7 +81,7 @@ export const CopySecretsFromBoard = ({
|
||||
|
||||
const { data: accessibleSecrets, isPending: isAccessibleSecretsLoading } =
|
||||
useGetAccessibleSecrets({
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
secretPath: debouncedEnvCopySecretPath,
|
||||
environment: selectedEnvSlug.slug,
|
||||
filterByAction: shouldIncludeValues
|
||||
@@ -89,7 +89,7 @@ export const CopySecretsFromBoard = ({
|
||||
: ProjectPermissionSecretActions.DescribeSecret,
|
||||
options: {
|
||||
enabled:
|
||||
Boolean(workspaceId) &&
|
||||
Boolean(projectId) &&
|
||||
Boolean(selectedEnvSlug) &&
|
||||
Boolean(debouncedEnvCopySecretPath) &&
|
||||
isOpen
|
||||
|
||||
+3
-3
@@ -196,7 +196,7 @@ export const SecretDropzone = ({
|
||||
const { secrets: existingSecrets } = await fetchDashboardProjectSecretsByKeys({
|
||||
secretPath,
|
||||
environment,
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
keys: envSecretKeys
|
||||
});
|
||||
|
||||
@@ -361,7 +361,7 @@ export const SecretDropzone = ({
|
||||
queryKey: secretKeys.getProjectSecret({ projectId, environment, secretPath })
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: dashboardKeys.getDashboardSecrets({ projectId: projectId, secretPath })
|
||||
queryKey: dashboardKeys.getDashboardSecrets({ projectId, secretPath })
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: secretApprovalRequestKeys.count({ projectId })
|
||||
@@ -464,7 +464,7 @@ export const SecretDropzone = ({
|
||||
onParsedEnv={handleParsedEnv}
|
||||
environment={environment}
|
||||
environments={environments}
|
||||
workspaceId={projectId}
|
||||
projectId={projectId}
|
||||
secretPath={secretPath}
|
||||
isSmaller={isSmaller}
|
||||
/>
|
||||
|
||||
+5
-5
@@ -18,7 +18,7 @@ import { usePopUp } from "@app/hooks";
|
||||
import { useDeleteSecretImport, useUpdateSecretImport } from "@app/hooks/api";
|
||||
import { ReservedFolders } from "@app/hooks/api/secretFolders/types";
|
||||
import { TSecretImport } from "@app/hooks/api/secretImports/types";
|
||||
import { SecretV3RawSanitized, ProjectEnv } from "@app/hooks/api/types";
|
||||
import { ProjectEnv, SecretV3RawSanitized } from "@app/hooks/api/types";
|
||||
import { formatReservedPaths } from "@app/lib/fn/string";
|
||||
|
||||
import { SecretImportItem } from "./SecretImportItem";
|
||||
@@ -86,7 +86,7 @@ export const computeImportedSecretRows = (
|
||||
|
||||
type Props = {
|
||||
environment: string;
|
||||
workspaceId: string;
|
||||
projectId: string;
|
||||
secretPath?: string;
|
||||
secretImports?: TSecretImport[];
|
||||
isFetching?: boolean;
|
||||
@@ -98,7 +98,7 @@ type Props = {
|
||||
export const SecretImportListView = ({
|
||||
secretImports,
|
||||
environment,
|
||||
workspaceId,
|
||||
projectId,
|
||||
secretPath,
|
||||
importedSecrets,
|
||||
// secrets = [],
|
||||
@@ -132,7 +132,7 @@ export const SecretImportListView = ({
|
||||
const { id: secretImportId } = popUp.deleteSecretImport?.data as { id: string };
|
||||
try {
|
||||
await deleteSecretImport({
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
path: secretPath,
|
||||
id: secretImportId
|
||||
@@ -158,7 +158,7 @@ export const SecretImportListView = ({
|
||||
const newImportOrder = arrayMove(items, oldIndex, newIndex);
|
||||
setItems(newImportOrder);
|
||||
updateSecretImport({
|
||||
projectId: workspaceId,
|
||||
projectId,
|
||||
environment,
|
||||
path: secretPath,
|
||||
id: active.id as string,
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ const useWorkspaceMembers = () => {
|
||||
export const CreateReminderForm = ({
|
||||
isOpen,
|
||||
onOpenChange,
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath,
|
||||
secretId,
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ import { InfisicalSecretInput } from "@app/components/v2/InfisicalSecretInput";
|
||||
import {
|
||||
ProjectPermissionActions,
|
||||
ProjectPermissionSub,
|
||||
useProjectPermission,
|
||||
useProject
|
||||
useProject,
|
||||
useProjectPermission
|
||||
} from "@app/context";
|
||||
import { ProjectPermissionSecretActions } from "@app/context/ProjectPermissionContext/types";
|
||||
import { getProjectBaseURL } from "@app/helpers/project";
|
||||
|
||||
+8
-8
@@ -57,7 +57,7 @@ type Props = {
|
||||
export const SecretListView = ({
|
||||
secrets = [],
|
||||
environment,
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
secretPath = "/",
|
||||
tags: wsTags = [],
|
||||
isVisible,
|
||||
@@ -93,7 +93,7 @@ export const SecretListView = ({
|
||||
message:
|
||||
"You have unsaved changes. If you leave now, your work will be lost. Do you want to continue?",
|
||||
context: {
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
}
|
||||
@@ -337,7 +337,7 @@ export const SecretListView = ({
|
||||
};
|
||||
|
||||
addPendingChange(updatedCreate, {
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -369,7 +369,7 @@ export const SecretListView = ({
|
||||
};
|
||||
|
||||
addPendingChange(updateChange, {
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -422,7 +422,7 @@ export const SecretListView = ({
|
||||
})
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: commitKeys.count({ projectId: projectId, environment, directory: secretPath })
|
||||
queryKey: commitKeys.count({ projectId, environment, directory: secretPath })
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: commitKeys.history({
|
||||
@@ -479,7 +479,7 @@ export const SecretListView = ({
|
||||
};
|
||||
|
||||
addPendingChange(deleteChange, {
|
||||
projectId: projectId,
|
||||
projectId,
|
||||
environment,
|
||||
secretPath
|
||||
});
|
||||
@@ -492,7 +492,7 @@ export const SecretListView = ({
|
||||
await handleSecretOperation("delete", SecretType.Shared, key, { secretId });
|
||||
// wrap this in another function and then reuse
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: dashboardKeys.getDashboardSecrets({ projectId: projectId, secretPath })
|
||||
queryKey: dashboardKeys.getDashboardSecrets({ projectId, secretPath })
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: secretKeys.getProjectSecret({ projectId, environment, secretPath })
|
||||
@@ -512,7 +512,7 @@ export const SecretListView = ({
|
||||
})
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: commitKeys.count({ projectId: projectId, environment, directory: secretPath })
|
||||
queryKey: commitKeys.count({ projectId, environment, directory: secretPath })
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: commitKeys.history({ projectId, environment, directory: secretPath })
|
||||
|
||||
Reference in New Issue
Block a user