Dataviewjs code fails when handeling filenames contain numbers and letters

What I’m trying to do

I am currently just finding tasks that starts with :repeat:
and is contained in daily notes.
this code works for the most part, but it breaks if a file in Daily has a name that has both digits and letters

	.where(p => p.file.folder.includes("Daily"))
	.sort((page) =>, "desc")
	.where(t => t.text.includes("πŸ”"))
	.groupBy(g => )
	.sort(s =>, "desc")
	, false

Evaluation Error: TypeError: Cannot read properties of undefined (reading 'file')
    at eval (eval at <anonymous> (plugin:dataview), <anonymous>:7:36)
    at eval (plugin:dataview:8103:24)
    at Array.sort (<anonymous>)
    at Proxy.sort (plugin:dataview:8102:14)
    at Proxy.groupBy (plugin:dataview:8126:33)
    at eval (eval at <anonymous> (plugin:dataview), <anonymous>:7:3)
    at DataviewInlineApi.eval (plugin:dataview:18404:16)
    at evalInContext (plugin:dataview:18405:7)
    at asyncEvalInContext (plugin:dataview:18415:32)
    at DataviewJSRenderer.render (plugin:dataview:18436:19)

Things I have tried

I have tested out different ways of checking if the file is of the correct type from from rejecting templating patterns β€œ{{date}}” to .mach() with regex to now p.file.folder.includes("Daily"))
I have also experimented with .groupBy() and .sort().

don’t know if the problem is with the code mentioned above or dataview.

After a lot of testing it looks like when groupBy() gets a link, or name containing both numbers and letters it seems to return β€œ-”. Does it exist any workaf\rounds for this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.