mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
fixed preloading bug for sorting null branches
This commit is contained in:
@@ -14,7 +14,11 @@ export default class BranchRow extends React.Component<Props> {
|
||||
if (defaultBranch) {
|
||||
showLabel = <span className="tag is-dark">Default</span>;
|
||||
}
|
||||
return <Link to={to}>{label} {showLabel}</Link>;
|
||||
return (
|
||||
<Link to={to}>
|
||||
{label} {showLabel}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
@@ -74,16 +74,16 @@ class BranchesOverview extends React.Component<Props> {
|
||||
render() {
|
||||
const { baseUrl, loading, error, branches, t } = this.props;
|
||||
|
||||
orderBranches(branches);
|
||||
|
||||
if (error) {
|
||||
return <ErrorNotification error={error} />;
|
||||
}
|
||||
|
||||
if (loading) {
|
||||
if (!branches || loading) {
|
||||
return <Loading />;
|
||||
}
|
||||
|
||||
orderBranches(branches);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Subtitle subtitle={t("branches.overview.title")} />
|
||||
|
||||
Reference in New Issue
Block a user