diff --git a/src/renderer/components/Editor/Editor.tsx b/src/renderer/components/Editor/Editor.tsx index 8a04106..a32deda 100644 --- a/src/renderer/components/Editor/Editor.tsx +++ b/src/renderer/components/Editor/Editor.tsx @@ -1053,30 +1053,30 @@ export const Editor: React.FC = () => { // Show settings if settings tab is active or settings view with no tab if (showSettings) { return ( - <> +
{renderErrorModal()} - +
); } // Show tags if tags tab is active if (showTags) { return ( - <> +
{renderErrorModal()} - +
); } // Show chat if chat tab is active if (showChat && activeTabId) { return ( - <> +
{renderErrorModal()} - +
); } @@ -1085,41 +1085,41 @@ export const Editor: React.FC = () => { const post = posts.find(p => p.id === activeTabId); if (post) { return ( - <> +
{renderErrorModal()} - +
); } // Post not found - show loading or empty state return ( - <> +

{isLoading ? 'Loading post...' : ''}

{renderErrorModal()} - +
); } // Show media editor if a media tab is active if (showMedia && activeTabId) { return ( - <> +
{renderErrorModal()} - +
); } // No tab active - show dashboard return ( - <> +
{renderErrorModal()} - +
); }; diff --git a/src/renderer/components/TabBar/TabBar.tsx b/src/renderer/components/TabBar/TabBar.tsx index fee06bb..da4331f 100644 --- a/src/renderer/components/TabBar/TabBar.tsx +++ b/src/renderer/components/TabBar/TabBar.tsx @@ -229,10 +229,6 @@ export const TabBar: React.FC = () => { return () => window.removeEventListener('keydown', handleKeyDown); }, [activeTabId, closeTab, toggleSidebar]); - if (tabs.length === 0) { - return null; - } - const handleTabClick = (tabId: string) => { setActiveTab(tabId); };