Skip to content

DEV: Replace findBy with find in category lookups - #217

Merged
megothss merged 1 commit into
mainfrom
dev/no-more-array-findby
Sep 25, 2025
Merged

DEV: Replace findBy with find in category lookups#217
megothss merged 1 commit into
mainfrom
dev/no-more-array-findby

Conversation

@megothss

Copy link
Copy Markdown
Contributor

Refactor category lookups across discourse-docs plugin by replacing findBy with the native find, simplifying the logic and ensuring safe fallback with optional chaining (?.name). This improves code clarity and reduces reliance on Ember's custom utilities.

Changes cover controllers, components, and routes where category references are used. No functionality impact is expected.

Refactor category lookups across `discourse-docs` plugin by replacing
`findBy` with the native `find`, simplifying the logic and ensuring
safe fallback with optional chaining (`?.name`). This improves code
clarity and reduces reliance on Ember's custom utilities.

Changes cover controllers, components, and routes where category
references are used. No functionality impact is expected.
Comment thread assets/javascripts/discourse/controllers/docs-index.js
@megothss
megothss merged commit 3e5b5fc into main Sep 25, 2025
5 checks passed
@megothss
megothss deleted the dev/no-more-array-findby branch September 25, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants