Comments (2)
you are accessing the file property on an undefined object.
this is not a dataview issue.
try this:
`$=dv.list(app.workspace.getLastOpenFiles().map(path => typeof dv.page(path) + " - " + path))`
as you can see in my case, non-notes are not pages so obviously, dv.page
will not return a page in said case.
what you CAN do, is this:
`$=dv.list(app.workspace.getLastOpenFiles().map(x=>dv.page(x)).filter(x=>x).map(x=>x.file))`
from obsidian-dataview.
Thx so much for the answer !!!
Testing the type of solved my issue
from obsidian-dataview.
Related Issues (20)
- It would be better if the setting interface could be switched between multiple languages. I hope this plugin settings page can be selected in Chinese.
- Counter for all pages for query
- Parenthesized metadata parser is a bit trigger-happy
- TASK DQL works on desktop but errors out on iOS HOT 1
- Fix the hidden fields' background in callouts
- Task Query: Basic Sub List Items not aligned since 1.6.3 HOT 1
- Line break resetting field values HOT 1
- Issue with the First Task Item in Callout Losing Data HOT 3
- Bug report: Dataview list within a table has additional empty lines between each item HOT 1
- generating table from a list within quote-block is always missing first list-item HOT 1
- TABLE file.folder returns a folder title that starts with "+" with a bullet in front of it
- DQL queries on date properties: empty != ""
- Bug report HOT 2
- DQL Task Query: Titled callouts cause a shift of results by one HOT 2
- Inline Queries all returning null HOT 1
- Use callout blockid in task section
- dv.view rendering inconsistantly but appears to be executing
- Titles are shorten in query "list" HOT 3
- Inline rendering only shows the first line of properties in reading view HOT 7
- Backslash escape ends inline Queries in edit mode.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-dataview.