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

fix: Fixed the problem of directory hiding in test case page and test plan page #161

Conversation

sherotree
Copy link
Contributor

What type of PR is this?

  • Feature
  • Bugfix
  • Test
  • Documentation
  • Refactor
  • Style
  • Chore

What this PR does / why we need it:

Fixed the problem of directory hiding in test case page and test plan page

Which issue(s) this PR fixes:

Fixes #
Fixed the problem of directory hiding in test case page and test plan page

Does this PR introduce a user interface change?

  • Yes(screenshot is required)
  • No

Special notes for your reviewer:

This bug was caused by fixing of [fix: show test set after first adding it #136] last time.
now add a param which name is isAddNodeFromOuterRef to prevent unnecessary setting treeData when add caseSet

}, [treeData, query.caseId]);

useEffect(() => {
if (activeOuter) {
onAddNode(rootKey);
clearActiveOuter();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
Copy link
Contributor

Choose a reason for hiding this comment

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

can u remove these lint disable line?

@@ -102,21 +102,20 @@ const TestSet = ({
const projectInfo = projectStore.useStore(s => s.info);
const { getCases } = testCaseStore.effects;
const { triggerChoosenAll: resetChoosenAll } = testCaseStore.reducers;
const isAddNodeFromOuterRef = React.useRef(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

define ref type

@sherotree sherotree closed this May 14, 2021
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