mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-19 05:52:11 +01:00
Fix error for empty repositories
This commit is contained in:
@@ -28,7 +28,7 @@ export function fetchSourcesWithoutOptionalLoadingState(
|
||||
.then(response => response.json())
|
||||
.then((sources: File) => {
|
||||
dispatch(fetchSourcesSuccess(repository, revision, path, sources));
|
||||
if (sources._embedded.children && sources._embedded.children.find(c => c.partialResult)) {
|
||||
if (sources._embedded && sources._embedded.children && sources._embedded.children.find(c => c.partialResult)) {
|
||||
setTimeout(() => dispatch(fetchSourcesWithoutOptionalLoadingState(repository, revision, path, false)), 3000);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user