Skip to content

Commit 831740d

Browse files
committed
[FIX] Align 'state' column null-guard with sibling owner/asset_type columns
Use the same falsy check (!data) as the owner/asset_type renderers instead of a strict === null comparison, so an undefined state value falls back to 'Unknown' instead of throwing on data.state_name.
1 parent f05c9a6 commit 831740d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/pages/view.customers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ $(document).ready(function() {
254254
{
255255
"data": "state",
256256
"render": function(data, type, row) {
257-
if (data === null) {
257+
if (!data) {
258258
return 'Unknown';
259259
}
260260
return type === 'display' ? sanitizeHTML(data.state_name) : data.state_name;

0 commit comments

Comments
 (0)