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 = [];