Skip to content

Commit c87aa06

Browse files
committed
Refactored by Copilot's suggestions - extended type of totalDownloads to null
1 parent b5eb30b commit c87aa06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/item-page/simple/field-components/file-section/total-downloads.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class TotalDownloadsComponent implements OnInit {
3030
* The total number of downloads across all bitstreams for the item.
3131
* Defaults to 0 and will show 0 if no data is available or an error occurs.
3232
*/
33-
totalDownloads = 0;
33+
totalDownloads: number | null = 0;
3434

3535
/**
3636
* Flag indicating whether the total downloads feature is enabled in the configuration.

0 commit comments

Comments
 (0)