Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1779894: Fixed the display issue in operand detail view, when the value of the… #3655

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -14,7 +14,7 @@ import { configureSizeModal } from './configure-size';
import { configureUpdateStrategyModal } from './configure-update-strategy';

const Default: React.SFC<SpecCapabilityProps> = ({ value }) => {
if (_.isEmpty(value) && !_.isNumber(value)) {
if (_.isEmpty(value) && !_.isNumber(value) && !_.isBoolean(value)) {
return <span className="text-muted">None</span>;
}
if (_.isObject(value)) {
Expand Down
Expand Up @@ -17,7 +17,7 @@ const Invalid: React.SFC<StatusCapabilityProps> = (props) => (
);

const Default: React.SFC<StatusCapabilityProps> = ({ value }) => {
if (_.isEmpty(value) && !_.isNumber(value)) {
if (_.isEmpty(value) && !_.isNumber(value) && !_.isBoolean(value)) {
return <span className="text-muted">None</span>;
}
if (_.isObject(value)) {
Expand Down