Skip to content

Commit 69fe88b

Browse files
committed
chore: fixed build errors
1 parent 772b380 commit 69fe88b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Website/components/datamodelview/Relationships.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)