Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract() throws TypeError: Cannot read property 'valueType' of undefined #98

Closed
aplavin opened this issue Apr 12, 2021 · 1 comment
Closed
Labels
bug Something isn't working. DQL Query language UX, issues, and features.

Comments

@aplavin
Copy link

aplavin commented Apr 12, 2021

Whenever I try using the extract function it throws this error:

Dataview: TypeError: Cannot read property 'valueType' of undefined

TypeError: Cannot read property 'valueType' of undefined
    at FunctionHandler.evaluate (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:9923:23)
    at Context.evaluate (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:9617:47)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:10407:41)
    at Array.map (<anonymous>)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:10406:40)
    at Array.map (<anonymous>)
    at execute (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:10405:28)
    at eval (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:10632:43)
    at tryOrPropogate (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:10695:16)
    at DataviewTableRenderer.onload (eval at <anonymous> (app://obsidian.md/app.js:1:1151979), <anonymous>:10632:22)

An example of what I tried: table extract(file, "mtime") as x. Meanwhile table file.mtime as x works just fine.
Do I miss something obvious here?

@blacksmithgu
Copy link
Owner

Didn't properly test it; fixed in upcoming release.

@blacksmithgu blacksmithgu added DQL Query language UX, issues, and features. bug Something isn't working. fixed labels Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. DQL Query language UX, issues, and features.
Projects
None yet
Development

No branches or pull requests

2 participants