Fix dashboard panel detail crash when viewing data tables with non-string values in text columns. Fixes #3071.

This commit is contained in:
Mike Burgess
2023-02-03 12:11:30 +00:00
parent 557d68c464
commit bd1bea9130
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
## v0.18.4 [TBD]
_Bug fixes_
* Fix dashboard panel detail crash when viewing data tables with non-string values in text columns. ([#3071](https://github.com/turbot/steampipe/issues/3071))
## v0.18.3 [2022-02-01]
_Bug fixes_
* Fix issue where `search_path` is not getting set from connection-config watching in service mode. ([#3047](https://github.com/turbot/steampipe/issues/3047))

View File

@@ -253,7 +253,7 @@ const CellValue = ({
</span>
);
} else if (dataType === "text") {
if (value.match("^https?://")) {
if (!!value.match && value.match("^https?://")) {
cellContent = (
<ExternalLink
className="link-highlight tabular-nums"
@@ -264,7 +264,7 @@ const CellValue = ({
</ExternalLink>
);
}
const mdMatch = value.match("^\\[(.*)\\]\\((https?://.*)\\)$");
const mdMatch = !!value.match && value.match("^\\[(.*)\\]\\((https?://.*)\\)$");
if (mdMatch) {
cellContent = (
<ExternalLink