-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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: fetch datasets list after dataset created successfully #10290
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10290 +/- ##
==========================================
- Coverage 70.54% 65.54% -5.00%
==========================================
Files 599 599
Lines 32075 32075
Branches 3244 3243 -1
==========================================
- Hits 22628 21025 -1603
- Misses 9343 10869 +1526
- Partials 104 181 +77
Continue to review full report at Codecov.
|
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.
love the hooks! one comment, otherwise lgtm
}: SubMenuProps) => { | ||
const [isModalOpen, setIsModalOpen] = useState(false); | ||
const [selectedMenu, setSelectedMenu] = useState( | ||
(childs && childs[0] && childs[0].label) || '', |
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.
is there a need to default to empty string here? if so, you can do childs?.[0]?.label || ''
and if not, simply do childs?.[0]?.label
and make this a useState<string | undefined>
call
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.
good suggestion! it doesn't need to default to empty string
SUMMARY
subMenu
to use hooksBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After:
https://www.loom.com/share/22f99d27dcc5493a921496a8b3302048
TEST PLAN
ADDITIONAL INFORMATION