Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
fix(pipeline-builder): fix data connector can't have multiple free-fo…
Browse files Browse the repository at this point in the history
…rm fields (#960)

Because

- data connector can't have multiple free-form fields

This commit

- fix data connector can't have multiple free-form fields
  • Loading branch information
EiffelFly committed Oct 13, 2023
1 parent e203cde commit 64d48df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@instill-ai/toolkit",
"version": "0.68.3-rc.69",
"version": "0.68.3-rc.71",
"description": "Instill AI's frontend toolkit",
"repository": "https://github.com/instill-ai/design-system.git",
"bugs": "https://github.com/instill-ai/design-system/issues",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ export const ConnectorNode = ({ data, id }: NodeProps<ConnectorNodeData>) => {
return getPropertiesFromOpenAPISchema(inputSchema);
}, [inputSchema]);

console.log(id, inputProperties);

const collapsedInputProperties = React.useMemo(() => {
if (exapndInputs) return inputProperties;
return inputProperties.slice(0, 3);
Expand Down Expand Up @@ -266,6 +268,7 @@ export const ConnectorNode = ({ data, id }: NodeProps<ConnectorNodeData>) => {
input: {
...node.data.component.configuration.input,
data: {
...node.data.component.configuration.input.data,
[formData.key]: formData.value,
},
},
Expand Down Expand Up @@ -609,7 +612,7 @@ export const ConnectorNode = ({ data, id }: NodeProps<ConnectorNodeData>) => {
</Button>
</div>
</div>
<div className="flex flex-col space-y-3">
<div className="mb-3 flex flex-col space-y-3">
<Form.Field
control={dataConnectorInputForm.control}
name="key"
Expand Down

1 comment on commit 64d48df

@vercel
Copy link

@vercel vercel bot commented on 64d48df Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.