From fc19180451cd3831dedecce1b121fee4295608d5 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Fri, 9 Aug 2024 07:02:37 +0000 Subject: [PATCH] fix(electron): missing collection name in tab header (#7807) fix AF-1177 --- .../core/src/pages/workspace/collection/index.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/frontend/core/src/pages/workspace/collection/index.tsx b/packages/frontend/core/src/pages/workspace/collection/index.tsx index 822bc71f81..e02ea117df 100644 --- a/packages/frontend/core/src/pages/workspace/collection/index.tsx +++ b/packages/frontend/core/src/pages/workspace/collection/index.tsx @@ -121,11 +121,19 @@ export const Component = function CollectionPage() { if (!collection) { return null; } - return isEmpty(collection) ? ( + const inner = isEmpty(collection) ? ( ) : ( ); + + return ( + <> + + + {inner} + + ); }; const Placeholder = ({ collection }: { collection: Collection }) => { @@ -157,8 +165,6 @@ const Placeholder = ({ collection }: { collection: Collection }) => { return ( <> - -