Skip to content

Commit

Permalink
fix(editor): Remove item count from pinned data status icon in new ca…
Browse files Browse the repository at this point in the history
…nvas (no-changelog) (#10431)
  • Loading branch information
alexgrozav committed Aug 15, 2024
1 parent 6d698fd commit 5754fe4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('CanvasNodeStatusIcons', () => {
},
});

expect(getByTestId('canvas-node-status-pinned')).toHaveTextContent('5');
expect(getByTestId('canvas-node-status-pinned')).toBeInTheDocument();
});

it('should render correctly for a running node', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useCanvasNode } from '@/composables/useCanvasNode';
const nodeHelpers = useNodeHelpers();
const {
pinnedDataCount,
hasPinnedData,
issues,
hasIssues,
Expand Down Expand Up @@ -51,7 +50,6 @@ const hideNodeIssues = computed(() => false); // @TODO Implement this
:class="[$style.status, $style.pinnedData]"
>
<FontAwesomeIcon icon="thumbtack" />
<span v-if="pinnedDataCount > 1" :class="$style.count"> {{ pinnedDataCount }}</span>
</div>
<div v-else-if="executionStatus === 'unknown'">
<!-- Do nothing, unknown means the node never executed -->
Expand Down

0 comments on commit 5754fe4

Please sign in to comment.