Skip to content

Commit ff5d738

Browse files
authored
DEV: Refactor filter expansion logic in docs-index for desktop view (#215)
Correct the `docs-index` controller logic to expand filters only in desktop view by replacing `!this.site.mobileView` with `this.site.desktopView`.
1 parent 22989b0 commit ff5d738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)