From 5e6b6d15e4222d8b656c95a37cd244b0f4c02331 Mon Sep 17 00:00:00 2001 From: dongrui <38676269+whDongRui@users.noreply.github.com> Date: Thu, 13 Sep 2018 16:21:51 +0800 Subject: [PATCH] fix: Repo create provider select error (#354) * fix: Repo create provider select fix: Deploy app config format error * fix: Remove console info --- src/components/Base/Select/select.jsx | 2 +- src/pages/Admin/Apps/Deploy/Cell/YamlCell.jsx | 6 +++--- src/pages/Admin/Repos/index.jsx | 1 - src/pages/Admin/Users/Detail/index.jsx | 1 - src/stores/app/deploy.js | 11 +++++++---- src/stores/repo/create.js | 17 ++++++++++------- src/utils/index.js | 1 + 7 files changed, 22 insertions(+), 17 deletions(-) diff --git a/src/components/Base/Select/select.jsx b/src/components/Base/Select/select.jsx index cbb71eb1..33dd25c8 100644 --- a/src/components/Base/Select/select.jsx +++ b/src/components/Base/Select/select.jsx @@ -89,7 +89,7 @@ export default class Select extends React.Component { return (
-
{value}
+
{this.currentLabel}
); diff --git a/src/pages/Admin/Apps/Deploy/Cell/YamlCell.jsx b/src/pages/Admin/Apps/Deploy/Cell/YamlCell.jsx index 6b057880..10516993 100644 --- a/src/pages/Admin/Apps/Deploy/Cell/YamlCell.jsx +++ b/src/pages/Admin/Apps/Deploy/Cell/YamlCell.jsx @@ -29,15 +29,15 @@ export default class YamlCell extends PureComponent { render() { const { name, value, className } = this.props; const isRadio = typeof value === 'boolean'; - + const showName = name.replace(/>>>/g, '.'); if (value === null) { return null; } return (
-