Skip to content
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

chore: hide group when searching #159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

undefined-moe
Copy link

No description provided.

@@ -56,7 +56,7 @@ const OnItemDragStart = (
};
};

const ModuleGroup = (props: { level: number; group: ListingGroup; hideGroup?: boolean }) => {
const ModuleGroup = (props: { level: number; group: ListingGroup; hideGroup?: number }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the name hideGroup still make sense? hideGroupDepth? I dunno .. I hate picking names :)

@TrueBrain
Copy link
Contributor

When I test this, it doesn't seem to work correctly. If I search for nano in the modules, the list remains completely empty. Any idea what is going on?

@undefined-moe
Copy link
Author

Things will work after changing https://github.com/EVEShipFit/react/pull/159/files#diff-fec9db4003eafeee5a5b3feb325eda87d7f52cdf7d67478bffeadc4f57ece567R424 to

        if (!search) groupTree = groupTree.groups[group];

but no idea why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants