Skip to content

Crash when clicking on linked references filter button #526

@kerim

Description

@kerim

Search first

  • I searched and no similar issues were found

What Happened?

I have a page on which I filtered linked references. Currently no references are showing. No number is displayed, but I think it should show 2 or 3 linked references. However, when I try to clear the filter, I immediately trigger a crash. Here is the error report:

Error caught by UI!
TypeError: Cannot read properties of null (reading 'toLowerCase')
TypeError: Cannot read properties of null (reading 'toLowerCase')
at Object.vj (https://test.logseq.com/js/main.js:5616:334)
at Function. (https://test.logseq.com/js/main.js:17827:165)
at iia (https://test.logseq.com/js/main.js:5485:64)
at hia (https://test.logseq.com/js/main.js:5484:71)
at fia (https://test.logseq.com/js/main.js:5483:398)
at gia (https://test.logseq.com/js/main.js:5483:311)
at Hf.A (https://test.logseq.com/js/main.js:10714:163)
at d (https://test.logseq.com/js/main.js:6542:66)
at mf (https://test.logseq.com/js/react-dom.production.min.js:105:412)
at Qk (https://test.logseq.com/js/react-dom.production.min.js:250:214)
at Ri (https://test.logseq.com/js/react-dom.production.min.js:195:185)
at Ok (https://test.logseq.com/js/react-dom.production.min.js:195:116)
at Nd (https://test.logseq.com/js/react-dom.production.min.js:194:492)
at Qf (https://test.logseq.com/js/react-dom.production.min.js:187:439)
at Li (https://test.logseq.com/js/react-dom.production.min.js:189:234)
at db (https://test.logseq.com/js/react-dom.production.min.js:79:182)
at https://test.logseq.com/js/react-dom.production.min.js:184:289

Reproduce the Bug

Not sure if this is reproducible. May be caused by filtering ALL linked references? But I'm afraid to test...

Expected Behavior

Should be able to clear all filters without crashing

Files

No response

Browser, Desktop or Mobile Platform Information

MacOS
Chrome Browser
logseq/logseq@c03b55b

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions