Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

DBZ-8495: Bug fix #34

Merged
merged 1 commit into from
Dec 9, 2024
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
10 changes: 5 additions & 5 deletions src/components/SourceSinkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ const SourceSinkForm = ({
</FormGroup>
<FormGroup
label="Description"
fieldId={`${connectorType}-details-field`}
fieldId={`${connectorType}-description-field`}
>
<TextInput
id={`${connectorType}-details`}
aria-label={`${connectorLabel} details`}
onChange={(_event, value) => setValue("details", value)}
value={getValue("details")}
id={`${connectorType}-description`}
aria-label={`${connectorLabel} description`}
onChange={(_event, value) => setValue("description", value)}
value={getValue(`description`)}
/>
<FormHelperText>
<HelperText>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/Destination/EditDestination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const EditDestination: React.FunctionComponent = () => {
i++;
}
setProperties(configMap);
setKeyCount(configMap.size);
};

React.useEffect(() => {
Expand Down Expand Up @@ -125,7 +126,7 @@ const EditDestination: React.FunctionComponent = () => {

const editDestination = async (values: Record<string, string>) => {
const payload = {
description: values["details"],
description: values["description"],
config: convertMapToObject(properties),
name: values["destination-name"],
};
Expand Down Expand Up @@ -232,7 +233,7 @@ const EditDestination: React.FunctionComponent = () => {
<FormContextProvider
initialValues={{
"destination-name": destination?.name || "",
details: destination?.description || "",
description: destination?.description || "",
}}
>
{({ setValue, getValue, setError, values, errors }) => (
Expand Down
5 changes: 3 additions & 2 deletions src/pages/Source/EditSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const EditSource: React.FunctionComponent = () => {
i++;
}
setProperties(configMap);
setKeyCount(configMap.size);
};

React.useEffect(() => {
Expand Down Expand Up @@ -126,7 +127,7 @@ const EditSource: React.FunctionComponent = () => {

const editSource = async (values: Record<string, string>) => {
const payload = {
description: values["descriptions"],
description: values["description"],
config: convertMapToObject(properties),
name: values["source-name"],
};
Expand Down Expand Up @@ -232,7 +233,7 @@ const EditSource: React.FunctionComponent = () => {
<FormContextProvider
initialValues={{
"source-name": source?.name || "",
descriptions: source?.description || "",
description: source?.description || "",
}}
>
{({ setValue, getValue, setError, values, errors }) => (
Expand Down
Loading