Skip to content

Commit

Permalink
馃獰 馃悰 Fix list connections call (#22154)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephkmh committed Jan 31, 2023
1 parent bf47680 commit c8061c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airbyte-webapp/src/hooks/services/useConnectionHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { SyncSchema } from "core/domain/catalog";
import { WebBackendConnectionService } from "core/domain/connection";
import { ConnectionService } from "core/domain/connection/ConnectionService";
import { useInitService } from "services/useInitService";
import { useCurrentWorkspaceId } from "services/workspaces/WorkspacesService";

import { useAnalyticsService } from "./Analytics";
import { useAppMonitoringService } from "./AppMonitoringService";
Expand Down Expand Up @@ -84,7 +85,7 @@ export const useSyncConnection = () => {
const queryClient = useQueryClient();
const analyticsService = useAnalyticsService();
const notificationService = useNotificationService();
const workspaceId = useCurrentWorkspace();
const workspaceId = useCurrentWorkspaceId();
const { formatMessage } = useIntl();

return useMutation(
Expand All @@ -111,7 +112,7 @@ export const useSyncConnection = () => {
},
onSuccess: async () => {
await webConnectionService
.list(workspaceId)
.list({ workspaceId })
.then((updatedConnections) => queryClient.setQueryData(connectionsKeys.lists(), updatedConnections));
},
}
Expand Down

0 comments on commit c8061c0

Please sign in to comment.