From abd7da7207844d3ebb116c9cb6cad80b92ad06a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Saquetim?= Date: Fri, 15 Aug 2025 15:11:57 -0300 Subject: [PATCH] DEV: Refactor filter expansion logic in `docs-index` for desktop view Correct the `docs-index` controller logic to expand filters only in desktop view by replacing `!this.site.mobileView` with `this.site.desktopView`. --- assets/javascripts/discourse/controllers/docs-index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/controllers/docs-index.js b/assets/javascripts/discourse/controllers/docs-index.js index 7b7237a..88ef321 100644 --- a/assets/javascripts/discourse/controllers/docs-index.js +++ b/assets/javascripts/discourse/controllers/docs-index.js @@ -58,7 +58,7 @@ export default class DocsIndexController extends Controller { @on("init") _setupFilters() { - if (!this.site.mobileView) { + if (this.site.desktopView) { this.set("expandedFilters", true); } this.setProperties({