refactor(review): remove panel draft composer, move suppression to Editor

This commit is contained in:
Hiren Kangad
2026-03-12 22:09:12 +05:30
parent 54a7557233
commit 40153751f6
3 changed files with 2 additions and 43 deletions
+1 -3
View File
@@ -1039,7 +1039,7 @@ export default function Editor({ isPublicView }: EditorProps) {
{reviewMode && annotationStore && user && resolvedBoardId && (
<FeedbackPanel
annotationStore={annotationStore}
selectedObjectId={selectedLayerIds.length === 1 ? selectedLayerIds[0] : null}
selectedObjectId={draftPin ? null : (selectedLayerIds.length === 1 ? selectedLayerIds[0] : null)}
userId={user.id}
boardId={resolvedBoardId}
token={localStorage.getItem('refboard_token') || ''}
@@ -1047,8 +1047,6 @@ export default function Editor({ isPublicView }: EditorProps) {
onError={(msg) => showToast(msg)}
expandRequest={expandRequest}
focusedThreadId={focusedThreadId}
draftPin={draftPin}
onCreatePointThread={handleCreatePointThread}
onThreadDetailChange={setOpenThreadDetailId}
onJumpToObject={(objectId, thread) => {
const scene = canvasRef.current?.getScene();