You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Toggling is/is not on a Tags "Empty" filter crashes All Pages with "Invalid view resource context" #1434
On All Pages, after adding a Tags filter with the value "Empty", switching the operator between "is" and "is not" crashes the app with "Something went wrong" / "Invalid view resource context". The broken filter is persisted on the view, so the page keeps crashing until the filter is removed.
Reproduce the Bug
Open All Pages (table view).
Click Filter → Tags → is → choose "Empty".
Click the operator pill ("is") and switch it to "is not" (or back from "is not" to "is").
See error: "Something went wrong".
One time, I have to change the option multiple times to reproduce the issue.
Expected Behavior
The operator flips and the filter keeps its "Empty" value (Tags is not Empty), with no crash.
Persisted filter on the All Pages view block after the crash (logseq.property.table/filters): {:or? false :filters [[:block/tags :is]]} — a 2-element clause (value dropped).
logseq-filter.mp4
Files
No response
Browser, Desktop or Mobile Platform Information
Windows 11, Desktop App, build 2026-10-07, revision 533ac43
Additional Context
Likely cause: view-filter-value-after-operator-change in src/main/frontend/worker/handler/view.cljs keeps the value for :is/:is-not only when it is a set:
(:is :is-not) (when (set? value) value)
The "Empty" choice stores :empty (a keyword), so it is dropped, and filter-operator (components/views.cljs) saves [property operator]. valid-filters? requires 3-element clauses, so the view resource request fails. Unchanged on master as of 2026-10-12.
Fixed in logseq/logseq#13884 (fix(views): table filters keep working when a clause is empty or matches text values). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
Activity
fix: keep Empty when flipping is/is-not filters
yuxi-liu-wired commentedon Oct 27, 2026
Fixed in logseq/logseq#13884 (fix(views): table filters keep working when a clause is empty or matches text values). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix(views): keep the Empty value when flipping a filter between is an…
fix: keep Empty when flipping is/is-not filters (logseq#13751)
fix(views): keep the Empty value when flipping a filter between is an…
fix(ui): align LUI desktop web UX with master (#14071)