chhoumann / DemoVault

Demo vault for Obsidian stuff by Christian.
155 stars 47 forks source link

contains() to be replaced with includes() #1

Closed zubayrali closed 1 year ago

zubayrali commented 2 years ago
const pages = dv.current().file.inlinks.where(p => dv.page(p.path).tags?.contains('project'));

dv.table(["Project", "Status"], pages.map(p => {
    const page = dv.page(p.path); 
    return [page.file.link, page.status]
}));

is not working for me, it throws Evaluation Error: TypeError: dv.page(...).tags?.contains is not a function , I replaced it includes() and it seems to be working now, I also read that contains() is deprecated. I'd be happy to make a PR.

Big thanks for this workflow btw.

chhoumann commented 1 year ago

Hi @zubayrrr

Thank you! I've made the replacement and pushed it to the vault :)