From 554d22a35a0df97c7a718ea24693593ce7c2218a Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 26 Mar 2025 21:38:25 +0000 Subject: [PATCH] refactor: update variable declaration and improve no items message in ScheduledMaintenanceTable component --- Common/Types/Events/Recurring.ts | 2 +- .../ScheduledMaintenance/ScheduledMaintenanceTable.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Types/Events/Recurring.ts b/Common/Types/Events/Recurring.ts index 3906cdb8b1..2f6e6f9a34 100644 --- a/Common/Types/Events/Recurring.ts +++ b/Common/Types/Events/Recurring.ts @@ -79,7 +79,7 @@ export default class Recurring extends DatabaseProperty { const intervalType: EventInterval = rotation.intervalType; const intervalCount: PositiveNumber = rotation.intervalCount; - let diff: number = dateNow.getTime() - nextDate.getTime(); + const diff: number = dateNow.getTime() - nextDate.getTime(); let intervalMillis: number; switch (intervalType) { diff --git a/Dashboard/src/Components/ScheduledMaintenance/ScheduledMaintenanceTable.tsx b/Dashboard/src/Components/ScheduledMaintenance/ScheduledMaintenanceTable.tsx index c2dcdf2e12..5ef902136f 100644 --- a/Dashboard/src/Components/ScheduledMaintenance/ScheduledMaintenanceTable.tsx +++ b/Dashboard/src/Components/ScheduledMaintenance/ScheduledMaintenanceTable.tsx @@ -131,7 +131,7 @@ const ScheduledMaintenancesTable: FunctionComponent = ( buttons: cardbuttons, }} noItemsMessage={ - props.noItemsMessage || "No scheduled Maintenance Event found." + props.noItemsMessage || "No Scheduled Maintenance Event found." } showViewIdButton={true} viewButtonText="View Event"