mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
Use array find instead of filter
This commit is contained in:
@@ -70,7 +70,7 @@ class ChangesetsRoot extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const url = urls.stripEndingSlash(match.url);
|
const url = urls.stripEndingSlash(match.url);
|
||||||
const defaultBranch = branches?.filter(b => b.defaultBranch === true)[0];
|
const defaultBranch = branches?.find(b => b.defaultBranch === true);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user