mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 14:09:46 +03:00
fix handle of the default value
This commit is contained in:
parent
fc0611d750
commit
5a6dc0e89f
|
@ -77,7 +77,7 @@ function ExpandButton({
|
||||||
|
|
||||||
if (
|
if (
|
||||||
shouldExpandNode === 'collapse' ||
|
shouldExpandNode === 'collapse' ||
|
||||||
(isDefault && expandableDefaultValue === 'collapse')
|
(isDefault && expandableDefaultValue === 'expand')
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<div role="presentation" onClick={onExpand}>
|
<div role="presentation" onClick={onExpand}>
|
||||||
|
@ -105,7 +105,7 @@ function CollapseButton({
|
||||||
|
|
||||||
if (
|
if (
|
||||||
shouldExpandNode === 'expand' ||
|
shouldExpandNode === 'expand' ||
|
||||||
(isDefault && expandableDefaultValue === 'expand')
|
(isDefault && expandableDefaultValue === 'collapse')
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<div role="presentation" onClick={onCollapse}>
|
<div role="presentation" onClick={onCollapse}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user