diff --git a/src/pages/GenerateColumns.tsx b/src/pages/GenerateColumns.tsx index 9ea2acd..a07d9f9 100644 --- a/src/pages/GenerateColumns.tsx +++ b/src/pages/GenerateColumns.tsx @@ -26,8 +26,8 @@ export function formatValue( function formatObject(value: any) { const type = value.type; if (type === 'file') { - const fileName = value.path.split('/').pop().replace(/\.md$/, '') - return {type: "link", path: value.path, display: fileName}; + const display = value.display !== undefined ? value.display : value.path.split('/').pop().replace(/\.md$/, ''); + return {type: "link", path: value.path, display: display}; } if ("path" in value && "display" in value) {