mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: query invalidation
This commit is contained in:
@@ -896,9 +896,17 @@ export const useGetWorkspaceWorkflowIntegrationConfig = ({
|
||||
return useQuery({
|
||||
queryKey: workspaceKeys.getWorkspaceWorkflowIntegrationConfig(workspaceId, integration),
|
||||
queryFn: async () => {
|
||||
const { data } = await apiRequest.get<ProjectWorkflowIntegrationConfig>(
|
||||
`/api/v1/workspace/${workspaceId}/workflow-integration-config/${integration}`
|
||||
);
|
||||
const { data } = await apiRequest
|
||||
.get<ProjectWorkflowIntegrationConfig>(
|
||||
`/api/v1/workspace/${workspaceId}/workflow-integration-config/${integration}`
|
||||
)
|
||||
.catch((err) => {
|
||||
if (err.response.status === 404) {
|
||||
return { data: null };
|
||||
}
|
||||
|
||||
throw err;
|
||||
});
|
||||
|
||||
return data;
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
import { UsePopUpState } from "@app/hooks/usePopUp";
|
||||
|
||||
type Props = {
|
||||
microsoftTeamsConfig?: ProjectWorkflowIntegrationConfig;
|
||||
microsoftTeamsConfig?: ProjectWorkflowIntegrationConfig | null;
|
||||
isMicrosoftTeamsConfigLoading: boolean;
|
||||
handlePopUpOpen: (
|
||||
popUpName: keyof UsePopUpState<["removeIntegration", "editIntegration"]>,
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
import { UsePopUpState } from "@app/hooks/usePopUp";
|
||||
|
||||
type Props = {
|
||||
slackConfig?: ProjectWorkflowIntegrationConfig;
|
||||
slackConfig?: ProjectWorkflowIntegrationConfig | null;
|
||||
isSlackConfigLoading: boolean;
|
||||
handlePopUpOpen: (
|
||||
popUpName: keyof UsePopUpState<["removeIntegration", "editIntegration"]>,
|
||||
|
||||
Reference in New Issue
Block a user