Skip to content

Commit

Permalink
Add Destination Namespace default value (#12200)
Browse files Browse the repository at this point in the history
* default streamOption is source format

* use formik initialValue instead of form defaultValue

* cleanup

* initial value should be namespaceDefinition if exists
  • Loading branch information
teallarson authored Apr 21, 2022
1 parent e93bb85 commit 39b074e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ControlLabels, DropDown } from "components";

import { ConnectionNamespaceDefinition } from "core/domain/connection";

const StreamOptions = [
export const StreamOptions = [
{
value: ConnectionNamespaceDefinition.Source,
label: <FormattedMessage id="connectionForm.sourceFormat" />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const useInitialValues = (
syncCatalog: initialSchema,
schedule: connection.schedule !== undefined ? connection.schedule : DEFAULT_SCHEDULE,
prefix: connection.prefix || "",
namespaceDefinition: connection.namespaceDefinition,
namespaceDefinition: connection.namespaceDefinition || ConnectionNamespaceDefinition.Source,
namespaceFormat: connection.namespaceFormat ?? SOURCE_NAMESPACE_TAG,
};

Expand Down

0 comments on commit 39b074e

Please sign in to comment.