From 47779cf661947a7c4552baf3430a1155064de0b7 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Fri, 28 Nov 2025 10:34:26 +0100 Subject: [PATCH] fix: Include drafts off toggling --- CHANGELOG.md | 3 ++- app/browse/lib/params.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2160a6079..54f6f7e02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ You can also check the ## Unreleased -Nothing yet. +- Fixes + - Include drafts checkbox can be toggled off again now ### 6.2.2 - 2025-11-27 diff --git a/app/browse/lib/params.ts b/app/browse/lib/params.ts index cf8a11ceb..8744fa63e 100644 --- a/app/browse/lib/params.ts +++ b/app/browse/lib/params.ts @@ -68,7 +68,9 @@ export const getBrowseParamsFromQuery = ( subsubtype: subsubtype ?? previous?.subsubtype, subsubiri: subsubiri ?? previous?.subsubiri, topic: topic ?? previous?.topic, - includeDrafts: includeDrafts ?? previous?.includeDrafts, + includeDrafts: includeDrafts + ? JSON.parse(includeDrafts) + : previous?.includeDrafts, }, (d) => d !== undefined );