From 5263a1c40cfc8e1297ac9c3bd6419c89cc086cff Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Thu, 25 Aug 2022 14:50:45 +0300 Subject: [PATCH] RED-4819: Fixed file actions in workflow. --- .../expandable-file-actions.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts b/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts index 4b13c96d4..1f0dbd2b0 100644 --- a/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts @@ -39,12 +39,7 @@ export class ExpandableFileActionsComponent implements OnChanges { let count = 0; if (this.maxWidth) { count = Math.floor(this.maxWidth / 36) || 1; - } else { - this.displayedButtons = [...this.actions]; - this.hiddenButtons = []; - } - - if (this.minWidth <= 850) { + } else if (this.minWidth <= 850) { count = Math.floor(this.minWidth / (this.actions.length * 15)) || 1; if (this.minWidth <= 450) { this.displayedButtons = [];