diff --git a/manifest.json b/manifest.json index f153ddb..6f44ae7 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/package.json b/package.json index 94f1c88..78aad68 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/pages/GenerateColumns.tsx b/src/pages/GenerateColumns.tsx index 1fdeac6..46d1db6 100644 --- a/src/pages/GenerateColumns.tsx +++ b/src/pages/GenerateColumns.tsx @@ -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}; }