File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
airbyte-webapp/src/hooks/services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { SyncSchema } from "core/domain/catalog";
10
10
import { WebBackendConnectionService } from "core/domain/connection" ;
11
11
import { ConnectionService } from "core/domain/connection/ConnectionService" ;
12
12
import { useInitService } from "services/useInitService" ;
13
+ import { useCurrentWorkspaceId } from "services/workspaces/WorkspacesService" ;
13
14
14
15
import { useAnalyticsService } from "./Analytics" ;
15
16
import { useAppMonitoringService } from "./AppMonitoringService" ;
@@ -84,7 +85,7 @@ export const useSyncConnection = () => {
84
85
const queryClient = useQueryClient ( ) ;
85
86
const analyticsService = useAnalyticsService ( ) ;
86
87
const notificationService = useNotificationService ( ) ;
87
- const workspaceId = useCurrentWorkspace ( ) ;
88
+ const workspaceId = useCurrentWorkspaceId ( ) ;
88
89
const { formatMessage } = useIntl ( ) ;
89
90
90
91
return useMutation (
@@ -111,7 +112,7 @@ export const useSyncConnection = () => {
111
112
} ,
112
113
onSuccess : async ( ) => {
113
114
await webConnectionService
114
- . list ( workspaceId )
115
+ . list ( { workspaceId } )
115
116
. then ( ( updatedConnections ) => queryClient . setQueryData ( connectionsKeys . lists ( ) , updatedConnections ) ) ;
116
117
} ,
117
118
}
You can’t perform that action at this time.
0 commit comments