check defaultValue for address, basePath + host
revert changes to history module
@@ -85,9 +85,18 @@ export const DetailsPage: React.FunctionComponent = () => {
name={state.specification.name}
description={state.specification.description}
connectorTemplateId={state.connectorTemplateId}
- basePath={state.specification.configuredProperties!.basePath}
- host={state.specification.configuredProperties!.host}
- address={state.specification.configuredProperties!.address}
+ basePath={
+ state.specification.configuredProperties?.basePath ||
+ state.specification.properties?.basePath?.defaultValue
+ }
+ host={
+ state.specification.configuredProperties?.host ||
+ state.specification.properties?.host?.defaultValue
+ }
+ address={
+ state.specification.configuredProperties?.address ||
+ state.specification.properties?.address?.defaultValue
+ }
handleSubmit={onSubmit}
>
{({
