diff --git a/web/src/components/canvas/canvas-node.tsx b/web/src/components/canvas/canvas-node.tsx
index 6445f2741..816e69bba 100644
--- a/web/src/components/canvas/canvas-node.tsx
+++ b/web/src/components/canvas/canvas-node.tsx
@@ -43,6 +43,7 @@ type CanvasNodeProps = {
batchClosing?: boolean;
batchOpening?: boolean;
batchRecovering?: boolean;
+ batchPrimary?: boolean;
batchMotion?: { x: number; y: number; index: number };
onMouseDown: (event: React.MouseEvent, nodeId: string) => void;
onHoverStart: (nodeId: string) => void;
@@ -108,6 +109,7 @@ export const CanvasNode = React.memo(function CanvasNode({
batchClosing = false,
batchOpening = false,
batchRecovering = false,
+ batchPrimary = false,
batchMotion,
onMouseDown,
onHoverStart,
@@ -461,7 +463,7 @@ export const CanvasNode = React.memo(function CanvasNode({
{resourceLabel ? : null}
{hasMediaContent && !readOnly ? : null}
{isBatchRoot ? onToggleBatch?.(data.id)} /> : null}
- {isBatchChild && !readOnly ? onSetBatchPrimary?.(data)} /> : null}
+ {isBatchChild && !readOnly ? onSetBatchPrimary?.(data)} /> : null}
{data.metadata?.locked ? : null}
) : null}
@@ -802,11 +804,11 @@ function BatchToggleBadge({ count, expanded, theme, onToggle }: { count: number;
);
}
-function BatchPrimaryBadge({ visible, theme, onSelect }: { visible: boolean; theme: CanvasTheme; onSelect: () => void }) {
+function BatchPrimaryBadge({ visible, selected, theme, onSelect }: { visible: boolean; selected: boolean; theme: CanvasTheme; onSelect: () => void }) {
return (
-