Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: remove unused thread-scroll default constant and type guard (#8022)

BitCompass29885b8d658f
diff --git a/web-app/src/constants/threadScroll.ts b/web-app/src/constants/threadScroll.ts
index c7d4cde6e..c94b9ed1d 100644
--- a/web-app/src/constants/threadScroll.ts
+++ b/web-app/src/constants/threadScroll.ts
@@ -8,9 +8,6 @@ export const THREAD_SCROLL_BEHAVIOR = {
export type ThreadScrollBehavior =
(typeof THREAD_SCROLL_BEHAVIOR)[keyof typeof THREAD_SCROLL_BEHAVIOR]
-export const DEFAULT_THREAD_SCROLL_BEHAVIOR =
- THREAD_SCROLL_BEHAVIOR.FLOW
-
export const threadScrollBehaviorOptions: Array<{
value: ThreadScrollBehavior
translationKey: string
@@ -25,9 +22,3 @@ export const threadScrollBehaviorOptions: Array<{
},
]
-export const isThreadScrollBehavior = (
- value: unknown
-): value is ThreadScrollBehavior =>
- value === THREAD_SCROLL_BEHAVIOR.FLOW ||
- value === THREAD_SCROLL_BEHAVIOR.STICKY
-