Skip to content

Commit

Permalink
chore(scrollIntoOperationByOperationId): remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario committed Dec 30, 2024
1 parent 116e2f9 commit 8a35fb9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ watch(sandboxData.operationId, () => {
} else if (sandboxData.previewComponent.value === 'OASpec') {
scrollIntoOperationByOperationId({
hash: `#${sandboxData.operationId.value}`,
offset: 120,
})
}
})
Expand Down
1 change: 0 additions & 1 deletion src/components/Path/OAPathsByTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function onPathClick(tagPaths: { tag: string, paths: Record<string, any>, isOpen
nextTick(() => {
scrollIntoOperationByOperationId({
hash,
offset: 120,
})
})
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export function cn(...inputs: ClassValue[]) {

export function scrollIntoOperationByOperationId({
hash,
offset = 0,
container,
}: {
hash: string
offset?: number
Expand Down

0 comments on commit 8a35fb9

Please sign in to comment.