File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,9 @@ export const DataKeyPair: React.FC<DataKeyPairProps> = (props) => {
201
201
< Box className = 'data-key-pair'
202
202
data-testid = { 'data-key-pair' + path . join ( '.' ) }
203
203
onMouseEnter = {
204
- useCallback ( ( ) => setHover ( { path, nestedIndex } ) ,
205
- [ setHover , path , nestedIndex ] )
204
+ useCallback ( ( ) => {
205
+ setHover ( { path, nestedIndex } )
206
+ } , [ setHover , path , nestedIndex ] )
206
207
}
207
208
>
208
209
< DataBox
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const PreObjectType: React.FC<DataItemProps<object>> = (props) => {
43
43
} = useAtomValue ( colorspaceAtom )
44
44
const isArray = useMemo ( ( ) => Array . isArray ( props . value ) , [ props . value ] )
45
45
const isEmptyValue = useMemo ( ( ) => getValueSize ( props . value ) === 0 , [ props . value ] )
46
- const sizeOfValue = useMemo ( ( ) => inspectMetadata ( props . value ) , [ props . inspect , props . value ] )
46
+ const sizeOfValue = useMemo ( ( ) => inspectMetadata ( props . value ) , [ props . value ] )
47
47
const displayObjectSize = useAtomValue ( displayObjectSizeAtom )
48
48
const isTrap = useIsCycleReference ( props . path , props . value )
49
49
return (
@@ -88,7 +88,7 @@ export const PostObjectType: React.FC<DataItemProps<object>> = (props) => {
88
88
const isArray = useMemo ( ( ) => Array . isArray ( props . value ) , [ props . value ] )
89
89
const displayObjectSize = useAtomValue ( displayObjectSizeAtom )
90
90
const isEmptyValue = useMemo ( ( ) => getValueSize ( props . value ) === 0 , [ props . value ] )
91
- const sizeOfValue = useMemo ( ( ) => inspectMetadata ( props . value ) , [ props . inspect , props . value ] )
91
+ const sizeOfValue = useMemo ( ( ) => inspectMetadata ( props . value ) , [ props . value ] )
92
92
93
93
return (
94
94
< Box component = 'span' className = 'data-object-end' >
You can’t perform that action at this time.
0 commit comments