fix: closes #353
This commit is contained in:
parent
ea1e8ab9dc
commit
baa79164e2
@ -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,
|
||||
@ -238,7 +238,7 @@ class NewConfig extends React.Component {
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (validateContent.validate({ content, type: configType })) {
|
||||
this._publishConfig(content);
|
||||
} else {
|
||||
@ -250,7 +250,6 @@ class NewConfig extends React.Component {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user