Skip to content

Commit

Permalink
fix: check nullish of table property value (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 authored Mar 13, 2023
1 parent 7ec024b commit c500823
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const DataTableViewOverview: React.FC<
table.custom_properties ?? {}
).map(([key, value]) => (
<KeyContentDisplay key={key} keyString={titleize(key, '_', ' ')}>
{/https?:\/\/[^\s]+/.test(value.trim()) ? (
{value && /https?:\/\/[^\s]+/.test(value.trim()) ? (
<Link to={value} newTab>
{value}
</Link>
Expand Down

0 comments on commit c500823

Please sign in to comment.