Skip to content

Commit abd7da7

Browse files
committed
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`.
1 parent 2cfd050 commit abd7da7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/javascripts/discourse/controllers/docs-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class DocsIndexController extends Controller {
5858

5959
@on("init")
6060
_setupFilters() {
61-
if (!this.site.mobileView) {
61+
if (this.site.desktopView) {
6262
this.set("expandedFilters", true);
6363
}
6464
this.setProperties({

0 commit comments

Comments
 (0)