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

[UIPQB-145] Display raw booleans in nested table #166

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ncovercash
Copy link
Member

No description provided.

Copy link

github-actions bot commented Oct 25, 2024

Jest Unit Test Results

  1 files  ±0   10 suites  ±0   1m 9s ⏱️ ±0s
107 tests ±0  106 ✅ ±0  1 💤 ±0  0 ❌ ±0 
109 runs  ±0  108 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit fd99a60. ± Comparison against base commit 84bbe2a.

♻️ This comment has been updated with latest results.

@ncovercash ncovercash marked this pull request as ready for review October 25, 2024 03:17
Copy link

sonarcloud bot commented Oct 25, 2024

import PropTypes from 'prop-types';
import css from './DynamicTable.css';

const columnStyle = { width: '180px', minWidth: '180px' };

function getCellValue(row, property) {
// typeof check to ensure we don't try to display null/undefined as a booleans
if (property.dataType.dataType === 'booleanType' && typeof row[property.property] === 'boolean') {
Copy link
Contributor

@SergeYvas SergeYvas Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest using isBoolean(value) from Lodash for the boolean check and DATA_TYPES.BooleanType constant instead of 'booleanType'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants