Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

fix(ui): Fix previewing tombstone records #156

Merged
merged 1 commit into from Feb 10, 2023
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
3 changes: 2 additions & 1 deletion ui/src/components/pipelines/pipeline_designer/Grid.js
Expand Up @@ -23,7 +23,8 @@ class Grid extends Component {

const field = column.field;
const fieldName = field.name;
const rawValue = sample["value"][fieldName];
const rawValue =
sample["value"] == null ? null : sample["value"][fieldName];

// Check whether an error has occured when applying the pipeline spec
// in the current or a previous step
Expand Down
5 changes: 4 additions & 1 deletion ui/src/containers/streams/InspectStream.js
Expand Up @@ -80,7 +80,10 @@ class InspectStream extends Component {
isScrolling,
}) {
if (!column.isRowNumber && column.field !== undefined) {
const rawValue = rowData["value"][column.fieldName];
const rawValue =
rowData["value"] == null
? null
: rowData["value"][column.fieldName];
return (
<div className="sample-cell w-100 text-nowrap">
{renderTableCellContent(rawValue)}
Expand Down