fix(backend-gitlab): exclude directories in paginated results (#2668)
This commit is contained in:
parent
ee161c6848
commit
3903acb431
@ -203,7 +203,10 @@ export default class API {
|
||||
traverseCursor = async (cursor, action) => {
|
||||
const link = cursor.data.getIn(['links', action]);
|
||||
const { entries, cursor: newCursor } = await this.fetchCursorAndEntries(link);
|
||||
return { entries: entries.reverse(), cursor: this.reverseCursor(newCursor) };
|
||||
return {
|
||||
entries: entries.filter(({ type }) => type === 'blob').reverse(),
|
||||
cursor: this.reverseCursor(newCursor),
|
||||
};
|
||||
};
|
||||
|
||||
listAllFiles = async path => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user