Skip to content

Commit

Permalink
Handle empty values to determine xml cells (#24933) (#25114)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra authored Jan 5, 2024
1 parent f38e313 commit 1fc3964
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 1fc3964

Please sign in to comment.