mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
Fix exporting - cell type default, if value was number, was being lost in call to htmlToText.
This commit is contained in:
@ -86,14 +86,18 @@ function TableWidget(props: Props): JSX.Element
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cell = rows[i][columns[j].accessor];
|
const cell = rows[i][columns[j].accessor];
|
||||||
const text = htmlToText(cell,
|
let text = cell;
|
||||||
{
|
if(columns[j].type != "default")
|
||||||
selectors: [
|
{
|
||||||
{selector: "a", format: "inline"},
|
text = htmlToText(cell,
|
||||||
{selector: ".MuiIcon-root", format: "skip"},
|
{
|
||||||
{selector: ".button", format: "skip"}
|
selectors: [
|
||||||
]
|
{selector: "a", format: "inline"},
|
||||||
});
|
{selector: ".MuiIcon-root", format: "skip"},
|
||||||
|
{selector: ".button", format: "skip"}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
csv += `"${ValueUtils.cleanForCsv(text)}"`;
|
csv += `"${ValueUtils.cleanForCsv(text)}"`;
|
||||||
}
|
}
|
||||||
csv += "\n";
|
csv += "\n";
|
||||||
|
Reference in New Issue
Block a user