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 React from 'react';
import $ from 'jquery'; import $ from 'jquery';
import SuccessDialog from '../../../components/SuccessDialog'; import SuccessDialog from '../../../components/SuccessDialog';
import { getParams, setParams, request } from '../../../globalLib'; import { getParams, setParams, request, aliwareIntl } from '../../../globalLib';
import { import {
Balloon, Balloon,
Button, Button,
@ -238,7 +238,7 @@ class NewConfig extends React.Component {
}); });
return; return;
} }
if (validateContent.validate({ content, type: configType })) { if (validateContent.validate({ content, type: configType })) {
this._publishConfig(content); this._publishConfig(content);
} else { } else {
@ -250,7 +250,6 @@ class NewConfig extends React.Component {
}, },
}); });
} }
}); });
} }

View File

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