Skip to content

Build your personal knowledge base with Trilium Notes

chore(react/collections/table): fix type error

Elian Dorancb959e93f27f
diff --git a/apps/client/src/widgets/collections/table/columns.tsx b/apps/client/src/widgets/collections/table/columns.tsx
index 6646d643eb..2edcccaf89 100644
--- a/apps/client/src/widgets/collections/table/columns.tsx
+++ b/apps/client/src/widgets/collections/table/columns.tsx
@@ -95,10 +95,6 @@ export function buildColumnDefinitions({ info, movableRows, existingColumnData,
editor: "input",
formatter: wrapFormatter(({ cell }) => {
const { noteId, iconClass, colorClass } = cell.getRow().getData();
- if (!noteId) {
- return "";
- }
-
return <span className={`reference-link ${colorClass}`} data-href={`#root/${noteId}`}>
<Icon icon={iconClass} />{" "}{cell.getValue()}
</span>;