Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪟🐛 Connector builder UI: Fix inputs modal #21643

Merged
merged 3 commits into from
Jan 24, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ const InnerBuilderField: React.FC<BuilderFieldProps & FastFieldProps<unknown>> =

export const BuilderField: React.FC<BuilderFieldProps> = (props) => {
return (
<FastField name={props.path}>
// The key is set to enforce a re-render of the component if the type change, otherwise changes in props might not be reflected correctly
<FastField name={props.path} key={props.type}>
{({ field, form, meta }: FastFieldProps<unknown>) => (
<InnerBuilderField {...props} field={field} form={form} meta={meta} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,6 @@ const InputModal = ({
label={formatMessage({ id: "connectorBuilder.inputModal.default" })}
/>
)}
<BuilderField
path="definition.placeholder"
type="string"
optional
label={formatMessage({ id: "connectorBuilder.inputModal.placeholder" })}
tooltip={formatMessage({ id: "connectorBuilder.inputModal.placeholderTooltip" })}
/>
</>
) : (
<Callout className={styles.calloutContainer}>
Expand Down