mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
fix lib dropdown separator (#5694)
* fix lib dropdown seperator * delete indent
This commit is contained in:
@@ -104,6 +104,13 @@ class MylibRepoMenu extends React.Component {
|
||||
}
|
||||
|
||||
operations.push('Divider', 'History Setting', 'Advanced');
|
||||
// Remove adjacent excess 'Divider'
|
||||
for (let i = 0; i < operations.length; i++) {
|
||||
if (operations[i] === 'Divider' && operations[i + 1] === 'Divider') {
|
||||
operations.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
return operations;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user