From 4daff90391dfb0228bdb58b4b43b5cbf1c0576b5 Mon Sep 17 00:00:00 2001 From: Werner Date: Sun, 24 Nov 2024 19:21:39 +0100 Subject: [PATCH] fix: restore no custom annotations in table --- .../annotation/ProjectAnnotationView.jsx | 25 ------------- .../projects/bookmark/BookmarkRow.jsx | 36 +++++++++++-------- 2 files changed, 21 insertions(+), 40 deletions(-) diff --git a/app/workspace/projects/annotation/ProjectAnnotationView.jsx b/app/workspace/projects/annotation/ProjectAnnotationView.jsx index b36b8bd..68b75d9 100644 --- a/app/workspace/projects/annotation/ProjectAnnotationView.jsx +++ b/app/workspace/projects/annotation/ProjectAnnotationView.jsx @@ -28,8 +28,6 @@ const getCurrentView = () => { return "link-centric"; case "#metadata-centric": return "metadata-centric"; - case "#custom-centric": - return "custom-centric"; default: // get view from session storage (bookmark-centric OR annotation-centric) return SessionStorageHandler.get(KEYS.view, "classification-centric"); @@ -159,19 +157,6 @@ const ProjectAnnotationView = ({ /> ); break; - - case "custom-centric": - viewComponent = ( - - ); - break; } return ( @@ -223,16 +208,6 @@ const ProjectAnnotationView = ({ /> - - - diff --git a/app/workspace/projects/bookmark/BookmarkRow.jsx b/app/workspace/projects/bookmark/BookmarkRow.jsx index 786fd7a..03a2689 100644 --- a/app/workspace/projects/bookmark/BookmarkRow.jsx +++ b/app/workspace/projects/bookmark/BookmarkRow.jsx @@ -132,21 +132,27 @@ class BookmarkRow extends React.PureComponent { return ( - - {AnnotationTranslator(annotation)} - {isReflection && - ` (${annotation.level || defaultReflectionLevel})`} - - {info} - + {isReflection ? ( + <> + {AnnotationTranslator(annotation)} + {isReflection && + ` (${annotation.level || defaultReflectionLevel})`} + + {info} + + ) : ( + + {AnnotationTranslator(annotation)} + + )}