fix(editor): Remove item count from pinned data status icon in new canvas (no-changelog) (#10431)

This commit is contained in:
Alex Grozav 2024-08-15 13:18:37 +03:00 committed by GitHub
parent 6d698fd97d
commit 5754fe4ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -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', () => {

View file

@ -7,7 +7,6 @@ import { useCanvasNode } from '@/composables/useCanvasNode';
const nodeHelpers = useNodeHelpers();
const {
pinnedDataCount,
hasPinnedData,
issues,
hasIssues,
@ -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 -->