mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 04:48:48 +01:00
This commit is contained in:
parent
f8a5ca0aa6
commit
08a361ea3e
1 changed files with 2 additions and 2 deletions
|
|
@ -648,9 +648,9 @@ export const renderCell = (cellValue: IAVCellValue, wrap: boolean) => {
|
|||
} else if (cellValue.type === "rollup") {
|
||||
cellValue?.rollup?.contents?.forEach((item, index) => {
|
||||
const rollupText = ["select", "mSelect", "mAsset", "checkbox", "relation"].includes(item.type) ? renderCell(item, wrap) : renderRollup(item);
|
||||
if (!rollupText && text) {
|
||||
if (!rollupText && text && text.endsWith(", ")) {
|
||||
text = text.substring(0, text.length - 2);
|
||||
} else {
|
||||
} else if (rollupText) {
|
||||
text += rollupText + ((index === cellValue.rollup.contents.length - 1 || !rollupText) ? "" : ", ");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue