mirror of
https://github.com/turbot/steampipe.git
synced 2026-04-10 04:00:06 -04:00
Fix dashboard panel detail crash when viewing data tables with non-string values in text columns. Fixes #3071.
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user