Merge pull request #15898 from backstage/freben/substr
🧹 get rid of usages of substr which is deprecated
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ const renderSource = (build: BitriseBuildResult): React.ReactNode => {
|
||||
rel="noreferrer"
|
||||
startIcon={<GitHubIcon />}
|
||||
>
|
||||
{build.commitHash.substr(0, 6)}
|
||||
{build.commitHash.slice(0, 6)}
|
||||
</Button>
|
||||
) : null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user