mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
remove extra type check (#739)
This commit is contained in:
committed by
Denys Vuika
parent
940b44663a
commit
ed6d95cc1a
@@ -363,7 +363,6 @@ export class AppExtensionService implements RuleContext {
|
|||||||
return this.contextMenuActions
|
return this.contextMenuActions
|
||||||
.filter(action => this.filterByRules(action))
|
.filter(action => this.filterByRules(action))
|
||||||
.map(action => {
|
.map(action => {
|
||||||
if (action.type === ContentActionType.menu) {
|
|
||||||
if (action.type === ContentActionType.menu) {
|
if (action.type === ContentActionType.menu) {
|
||||||
const copy = this.copyAction(action);
|
const copy = this.copyAction(action);
|
||||||
if (copy.children && copy.children.length > 0) {
|
if (copy.children && copy.children.length > 0) {
|
||||||
@@ -374,9 +373,6 @@ export class AppExtensionService implements RuleContext {
|
|||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
return action;
|
return action;
|
||||||
} else {
|
|
||||||
return action;
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.reduce(reduceEmptyMenus, [])
|
.reduce(reduceEmptyMenus, [])
|
||||||
.reduce(reduceSeparators, []);
|
.reduce(reduceSeparators, []);
|
||||||
|
Reference in New Issue
Block a user