fix: fix filename display

This commit is contained in:
liufree 2025-04-24 21:49:19 +08:00
parent 9e2fdd4253
commit 027c64290e
3 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"id": "querydash",
"name": "QueryDash",
"version": "1.0.2",
"version": "1.0.3",
"minAppVersion": "1.8.0",
"description": "Refer to Dataview and add search, sorting, and pagination functions, just like Notion.",
"author": "lwx",

View file

@ -1,6 +1,5 @@
{
"name": "obsidian-querydash",
"version": "1.0.2",
"description": "Refer to Dataview and add search, sorting, and pagination functions, just like Notion.",
"main": "main.js",
"scripts": {

View file

@ -21,7 +21,7 @@ export function formatValue(
function formatObject(value: any) {
const type =value.type;
if(type==='file') {
const fileName = value.path.replace(/\.md$/, '');
const fileName = value.path.split('/').pop().replace(/\.md$/, '')
return {type: "link", path: value.path, display: fileName};
}