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) => {
201201 < Box className = 'data-key-pair'
202202 data-testid = { 'data-key-pair' + path . join ( '.' ) }
203203 onMouseEnter = {
204- useCallback ( ( ) => setHover ( { path, nestedIndex } ) ,
205- [ setHover , path , nestedIndex ] )
204+ useCallback ( ( ) => {
205+ setHover ( { path, nestedIndex } )
206+ } , [ setHover , path , nestedIndex ] )
206207 }
207208 >
208209 < DataBox
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const PreObjectType: React.FC<DataItemProps<object>> = (props) => {
4343 } = useAtomValue ( colorspaceAtom )
4444 const isArray = useMemo ( ( ) => Array . isArray ( props . value ) , [ props . value ] )
4545 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 ] )
4747 const displayObjectSize = useAtomValue ( displayObjectSizeAtom )
4848 const isTrap = useIsCycleReference ( props . path , props . value )
4949 return (
@@ -88,7 +88,7 @@ export const PostObjectType: React.FC<DataItemProps<object>> = (props) => {
8888 const isArray = useMemo ( ( ) => Array . isArray ( props . value ) , [ props . value ] )
8989 const displayObjectSize = useAtomValue ( displayObjectSizeAtom )
9090 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 ] )
9292
9393 return (
9494 < Box component = 'span' className = 'data-object-end' >
You can’t perform that action at this time.
0 commit comments