Skip to content

Commit

Permalink
fix: rendering of kustomization name when in root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
olensmar committed May 10, 2023
1 parent 4f47601 commit fbe7a57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const KustomizeRenderer: React.FC<IProps> = props => {
</S.PrefixContainer>

<S.ItemName isDisabled={isDisabled} isSelected={isSelected} isHighlighted={isHighlighted}>
{isLocalOrigin(resourceMeta.origin)
{isLocalOrigin(resourceMeta.origin) && resourceMeta.origin.filePath.lastIndexOf('/') > 1
? resourceMeta.origin.filePath.substring(0, resourceMeta.origin.filePath.lastIndexOf('/'))
: resourceMeta.name}
</S.ItemName>
Expand Down

0 comments on commit fbe7a57

Please sign in to comment.