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 committed Dec 12, 2023
1 parent c7c2b2f commit 8a2fb6d
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 8a2fb6d

Please sign in to comment.