-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed reference classes don't show up in filter search #793
fixed reference classes don't show up in filter search #793
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @webermayank! The functionality looks great! I just left some minor comments to try to make the formatting consistent with the rest of the codebase.
const filteredEntries = subcat.entries.filter((entry) => | ||
entry.data.title | ||
.toLowerCase() | ||
.includes(searchKeyword.toLowerCase()), | ||
); | ||
if (subcat.entry && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we format this like the brackets in this section, where the parts in the brackets are indented in once? e.g.:
if (
condition1 &&
condition2
) {
doSomething(); // code here, indented in once too
}
Currently, I the spacing in the if condition is a tad inconsistent, and the body of the if statement is indented with just one space instead of two.
Co-authored-by: Dave Pagurek <[email protected]>
@davepagurek , is it okay now ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks great!
Also no worries about code formatting, it's not super important, just a nice thing to have if everything else works 🙂 |
Fixes #717
earlier classes was not showing in filer search, after i modified the code and added a check , classes comes up in filter search
more example
@ksen0 , @davepagurek - please verify if this is correct. Tell me if something needs to be changed