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

fix(pipeline-builder): fix data connector can't have multiple free-form fields #960

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading