Skip to content

Commit e7511be

Browse files
committed
fix(ObjectSummary): start time should be taken from current schema object
1 parent 35a29ec commit e7511be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/Tenant/ObjectSummary/ObjectSummary.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function ObjectSummary(props: ObjectSummaryProps) {
104104

105105
const {name: tenantName, info: infoTab} = queryParams;
106106
const tenantData = _.get(data[tenantName as string], 'PathDescription.Self');
107+
const currentSchemaData = _.get(data[currentSchemaPath], 'PathDescription.Self');
107108

108109
const tableSchema =
109110
currentItem?.PathDescription?.Table || currentItem?.PathDescription?.OlapTableDescription;
@@ -152,7 +153,7 @@ function ObjectSummary(props: ObjectSummaryProps) {
152153
};
153154

154155
const renderObjectOverview = () => {
155-
const startTimeInMilliseconds = tenantData?.CreateStep / 1000;
156+
const startTimeInMilliseconds = currentSchemaData?.CreateStep / 1000;
156157
let createTime = 'Unknown';
157158
if (startTimeInMilliseconds) {
158159
createTime = new Date(startTimeInMilliseconds).toUTCString();

0 commit comments

Comments
 (0)