Skip to content

Commit 0609a26

Browse files
authored
fix(pipeline-text): remove $s from text (#3687)
1 parent 8b07efa commit 0609a26

File tree

1 file changed

+6
-2
lines changed
  • packages/compass-aggregations/src/components/pipeline-builder-workspace/pipeline-as-text-workspace

1 file changed

+6
-2
lines changed

packages/compass-aggregations/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,17 @@ export const PipelinePreview: React.FunctionComponent<PipelinePreviewProps> = ({
133133
const docCount = previewDocs?.length ?? 0;
134134
const docText = docCount === 1 ? 'document' : 'documents';
135135
const shouldShowCount = !isLoading && docCount > 0;
136-
const stageOperator = isMergeStage ? '$merge' : isOutStage ? '$out' : null
136+
const stageOperator = isMergeStage ? '$merge' : isOutStage ? '$out' : null;
137137
return (
138138
<div className={containerStyles} data-testid="pipeline-as-text-preview">
139139
<div className={previewHeaderStyles}>
140140
<div>
141141
<Overline>Pipeline Output</Overline>
142-
{shouldShowCount && <Body>Sample of ${docCount} ${docText}</Body>}
142+
{shouldShowCount && (
143+
<Body>
144+
Sample of {docCount} {docText}
145+
</Body>
146+
)}
143147
</div>
144148
<div className={pipelineOutputMenuStyles}>
145149
<PipelineOutputOptionsMenu

0 commit comments

Comments
 (0)