diff --git a/apps/client/src/widgets/collections/table/TablePrintView.tsx b/apps/client/src/widgets/collections/table/TablePrintView.tsx index 09f551969..278df6413 100644 --- a/apps/client/src/widgets/collections/table/TablePrintView.tsx +++ b/apps/client/src/widgets/collections/table/TablePrintView.tsx @@ -12,31 +12,36 @@ export default function TablePrintView({ note, noteIds, viewConfig }: ViewModePr const [ html, setHtml ] = useState(); return rowData && ( -
- {!html ? ( - { - const tabulator = tabulatorRef.current; - if (!tabulator) return; - const generatedTable = tabulator.modules.export.generateTable(tabulator.options.printConfig, tabulator.options.printStyled, tabulator.options.printRowRange, "print"); - if(tabulator.options.printFormatter){ - tabulator.options.printFormatter(tabulator.element, generatedTable); - } - setHtml(generatedTable.outerHTML); - }} - /> - ) : ( - - )} -
+ <> +

{note.title}

+ +
+ + {!html ? ( + { + const tabulator = tabulatorRef.current; + if (!tabulator) return; + const generatedTable = tabulator.modules.export.generateTable(tabulator.options.printConfig, tabulator.options.printStyled, tabulator.options.printRowRange, "print"); + if(tabulator.options.printFormatter){ + tabulator.options.printFormatter(tabulator.element, generatedTable); + } + setHtml(generatedTable.outerHTML); + }} + /> + ) : ( + + )} +
+ ) }