mirror of
https://github.com/liufree/obsidian-querydash.git
synced 2026-07-22 05:41:49 +00:00
fix: fix filename display
This commit is contained in:
parent
9e2fdd4253
commit
027c64290e
3 changed files with 2 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue