This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 5ad4696dd fix(config-ui): BP in advanced mode cannot be displayed 
normally (#5652)
5ad4696dd is described below

commit 5ad4696dd3ceec4e186069558101f65206bef244
Author: 青湛 <[email protected]>
AuthorDate: Tue Jul 11 20:00:50 2023 +1200

    fix(config-ui): BP in advanced mode cannot be displayed normally (#5652)
---
 config-ui/src/pages/blueprint/detail/configuration-panel.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/pages/blueprint/detail/configuration-panel.tsx 
b/config-ui/src/pages/blueprint/detail/configuration-panel.tsx
index 456b46c8b..f5225c493 100644
--- a/config-ui/src/pages/blueprint/detail/configuration-panel.tsx
+++ b/config-ui/src/pages/blueprint/detail/configuration-panel.tsx
@@ -137,7 +137,7 @@ export const ConfigurationPanel = ({ from, blueprint, 
onRefresh }: Props) => {
               title: 'Data Time Range',
               dataIndex: 'timeRange',
               key: 'timeRange',
-              render: (val) => `${formatTime(val)} to Now`,
+              render: (val) => (blueprint.mode === ModeEnum.normal ? 
`${formatTime(val)} to Now` : 'N/A'),
             },
             {
               title: 'Sync Frequency',
@@ -159,7 +159,7 @@ export const ConfigurationPanel = ({ from, blueprint, 
onRefresh }: Props) => {
           ]}
           dataSource={[
             {
-              timeRange: blueprint.settings.timeAfter,
+              timeRange: blueprint?.settings?.timeAfter,
               frequency: blueprint.cronConfig,
               isManual: blueprint.isManual,
               skipFailed: blueprint.skipOnFail,

Reply via email to