Skip to content

Commit

Permalink
fixup! fix: hasTechPreviewTag filter
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed Sep 27, 2024
1 parent 368e407 commit 600031f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ export class EditorSelectorEntry extends React.PureComponent<Props, State> {
groupIconMediatype === 'image/svg+xml'
? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(groupIcon)}`
: groupIcon;
const hasTechPreviewTag =
(activeEditor.tags || []).map(tag => tag.toLowerCase()).includes('tech-preview') ||
/idea/i.test(activeEditor.id) === true;
const hasTechPreviewTag = (activeEditor.tags || [])
.map(tag => tag.toLowerCase())
.includes('tech-preview');
const tagsGroup = (
<LabelGroup isVertical>
<TagLabel type="version" text={activeEditor.version} />
Expand Down

0 comments on commit 600031f

Please sign in to comment.