mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
Fix endless loading spinner for sources of empty repositories (#1565)
This commit is contained in:
@@ -120,7 +120,7 @@ describe("Test sources hooks", () => {
|
||||
});
|
||||
|
||||
const firstChild = (directory?: File) => {
|
||||
if (directory?._embedded.children && directory._embedded.children.length > 0) {
|
||||
if (directory?._embedded?.children && directory._embedded.children.length > 0) {
|
||||
return directory._embedded.children[0];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user