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.

fix: remove blank state threads

Faisal Amirfa958dc65f15
diff --git a/web-app/src/containers/LeftPanel.tsx b/web-app/src/containers/LeftPanel.tsx
index 8af04c421..4280b0a3d 100644
--- a/web-app/src/containers/LeftPanel.tsx
+++ b/web-app/src/containers/LeftPanel.tsx
@@ -493,23 +493,6 @@ const LeftPanel = () => {
</div>
)}
- {/* Show "No threads yet" when there are no threads at all OR when all threads are in projects */}
- {(Object.keys(threads).length === 0 || (Object.keys(threads).length > 0 && unFavoritedThreads.length === 0 && favoritedThreads.length === 0)) && (
- <>
- <div className="px-1 mt-2">
- <div className="flex items-center gap-1 text-left-panel-fg/80">
- <IconMessage size={18} />
- <h6 className="font-medium text-base">
- {t('common:noThreadsYet')}
- </h6>
- </div>
- <p className="text-left-panel-fg/60 mt-1 text-xs leading-relaxed">
- {t('common:noThreadsYetDesc')}
- </p>
- </div>
- </>
- )}
-
<div className="flex flex-col">
<ThreadList threads={unFavoritedThreads} />
</div>