Skip to content

Commit

Permalink
Merge pull request #3620 from SherpasGroup/fix-null-value-rendering
Browse files Browse the repository at this point in the history
Render empty string instead of null and undefined values
  • Loading branch information
wobba committed Mar 13, 2024
2 parents c175122 + 39ca5d0 commit ee00f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search-parts/src/components/DetailsListComponent.tsx
Expand Up @@ -358,7 +358,7 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP
value = ObjectHelper.byPath(item, column.value);
}

const tempColumnValueAsHtml = new DOMParser().parseFromString("<span>" + value as string + "</span>", "text/html");
const tempColumnValueAsHtml = new DOMParser().parseFromString(`<span>${value ?? ""}</span>`, "text/html");

this.props.templateService.replaceDisambiguatedMgtElementNames(tempColumnValueAsHtml);

Expand Down

0 comments on commit ee00f72

Please sign in to comment.