Skip to content

Commit

Permalink
Update selected connector columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kiahna-tucker committed Jan 8, 2025
1 parent ca6aed1 commit d253e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ const getDekafConnectorId = async (connectorImage: string) => {
() =>
supabaseClient
.from(TABLES.CONNECTORS)
.select(DETAILS_FORM_QUERY)
.select(`id`)
.eq('image_name', connectorImage)
.limit(1)
.single(),
'getDekafConnectorId'
).then(handleSuccess<{ connectorId: string }>, handleFailure);
).then(handleSuccess<{ id: string }>, handleFailure);

return data;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function useInitializeTaskDraft() {
if (connectorResponse.data) {
return {
...liveSpecResponse.data[0],
connector_id: connectorResponse.data.connectorId,
connector_id: connectorResponse.data.id,
};
} else {
setDraftInitializationError({
Expand Down

0 comments on commit d253e82

Please sign in to comment.