Skip to content

Commit

Permalink
Handle empty values to determine xml cells (#24933)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra authored Nov 10, 2023
1 parent 2f3230c commit 86227d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sql/workbench/contrib/query/browser/gridPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ function isJsonCell(value: ICellValue): boolean {

function isXmlCell(value: ICellValue): boolean {
let isXML = false;
if (value && !value.isNull) {
if (value && !value.isNull && value.displayValue.trim() !== '') {
parseXMLString(value.displayValue, (err, _) => {
isXML = err === null;
});
Expand Down

0 comments on commit 86227d6

Please sign in to comment.