File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Website/components/datamodelview Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const Relationships = ({ entity }: IRelationshipsProps) => {
2424 const [ searchQuery , setSearchQuery ] = useState ( "" )
2525
2626 const dispatch = useDatamodelViewDispatch ( ) ;
27- const { scrollIntoView } = useDatamodelView ( ) ;
27+ const { scrollToSection } = useDatamodelView ( ) ;
2828
2929 const handleSort = ( column : SortColumn ) => {
3030 if ( sortColumn === column ) {
@@ -246,9 +246,9 @@ export const Relationships = ({ entity }: IRelationshipsProps) => {
246246 key = { relationship . TableSchema }
247247 variant = "ghost"
248248 className = "p-0 text-base text-blue-600 underline dark:text-blue-500 hover:no-underline break-words"
249- onClick = { ( e ) => {
249+ onClick = { ( ) => {
250250 dispatch ( { type : "SET_CURRENT_SECTION" , payload : relationship . TableSchema } )
251- scrollIntoView ( e . target ) ;
251+ scrollToSection ( relationship . TableSchema ) ;
252252 } } >
253253 { relationship . TableSchema }
254254 </ Button >
You can’t perform that action at this time.
0 commit comments