Skip to content

Commit 0fe941f

Browse files
Issue 53267: Update value checks to account for 0 values (#1812)
1 parent 16e0779 commit 0fe941f

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

packages/components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/components",
3-
"version": "6.50.0",
3+
"version": "6.50.1",
44
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
55
"sideEffects": false,
66
"files": [

packages/components/releaseNotes/components.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# @labkey/components
22
Components, models, actions, and utility functions for LabKey applications and pages
33

4+
### Version 6.50.1
5+
*Released*: 23 June 2025
6+
- Issue 53267: Display 0 values for identifying fields
7+
48
### version 6.50.0
59
*Released*: 18 June 2025
610
- Update ESLint configuration and depend on `@labkey/eslint-config`

packages/components/src/internal/components/entities/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ export function getSampleIdentifyingFieldGridData(
13941394
sampleIdentifyingColumns.forEach(c => {
13951395
// Issue 52038: the Row has data keyed by name so make sure we do the same here (see QueryColumn index() comments)
13961396
const colData = caseInsensitive(row, c.name);
1397-
if (colData?.value) {
1397+
if (colData?.value != null) {
13981398
d[c.index] = colData?.formattedValue ?? colData?.displayValue ?? colData?.value;
13991399
}
14001400
});

packages/components/src/internal/components/forms/QuerySelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const OptionRenderer: FC<OptionRendererProps> = props => {
108108
if (item !== undefined) {
109109
let text = resolveDetailFieldLabel(item.get(column.name));
110110
if (!Utils.isString(text)) {
111-
text = text ? text.toString() : '';
111+
text = text != null ? text.toString() : '';
112112
}
113113

114114
return (

0 commit comments

Comments
 (0)