fix: closes #353

This commit is contained in:
王彦民 2018-12-07 13:51:34 +08:00 committed by Asa
parent ea1e8ab9dc
commit baa79164e2
2 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@
import React from 'react';
import $ from 'jquery';
import SuccessDialog from '../../../components/SuccessDialog';
import { getParams, setParams, request } from '../../../globalLib';
import { getParams, setParams, request, aliwareIntl } from '../../../globalLib';
import {
Balloon,
Button,
@ -250,7 +250,6 @@ class NewConfig extends React.Component {
},
});
}
});
}

View File

@ -114,13 +114,14 @@ class InstanceTable extends React.Component {
<Table.Column
title={locale.metadata}
dataIndex="metadata"
cell={metadata =>
Object.keys(metadata).map(k => (
cell={(metadata = {}) => {
if (!metadata) return null;
return Object.keys(metadata).map(k => (
<p>
{k}={metadata[k]}
</p>
))
}
));
}}
/>
<Table.Column
title={locale.operation}