mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
Fixed flow issues in tests
This commit is contained in:
@@ -96,7 +96,7 @@ class FileTree extends React.Component<Props> {
|
||||
});
|
||||
}
|
||||
|
||||
if (tree._embedded) {
|
||||
if (tree._embedded && tree._embedded.children) {
|
||||
files.push(...tree._embedded.children.sort(compareFiles));
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,13 @@ describe("create link tests", () => {
|
||||
return {
|
||||
name: "dir",
|
||||
path: path,
|
||||
directory: true
|
||||
directory: true,
|
||||
length: 1,
|
||||
revision: "1a",
|
||||
_links: {},
|
||||
_embedded: {
|
||||
children: []
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user