From f6aedd61e458f34967d2e8d69e7985deb129826a Mon Sep 17 00:00:00 2001 From: rschrieken Date: Sat, 20 Apr 2024 12:58:40 +0200 Subject: [PATCH] the tagformatter throws client-side when the value is not a string --- App/StackExchange.DataExplorer/Scripts/query.resultset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/StackExchange.DataExplorer/Scripts/query.resultset.js b/App/StackExchange.DataExplorer/Scripts/query.resultset.js index a27701c1..867fdb02 100644 --- a/App/StackExchange.DataExplorer/Scripts/query.resultset.js +++ b/App/StackExchange.DataExplorer/Scripts/query.resultset.js @@ -193,7 +193,7 @@ return function (row, cell, value, column, context) { var isMultiTags; - if (!value || !(value.match(/^[a-z0-9#.+-]+$/) || (isMultiTags = (value.search(/^(?:<[a-z0-9#.+-]+>)+$/) > -1)))) { + if (!value || !(typeof(value) === 'string') || !(value.match(/^[a-z0-9#.+-]+$/) || (isMultiTags = (value.search(/^(?:<[a-z0-9#.+-]+>)+$/) > -1)))) { return defaultFormatter(row, cell, value, column, context); }