refactor: update variable declaration and improve no items message in ScheduledMaintenanceTable component

This commit is contained in:
Simon Larsen
2025-03-26 21:38:25 +00:00
parent 22fd46291e
commit 554d22a35a
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -131,7 +131,7 @@ const ScheduledMaintenancesTable: FunctionComponent<ComponentProps> = (
buttons: cardbuttons,
}}
noItemsMessage={
props.noItemsMessage || "No scheduled Maintenance Event found."
props.noItemsMessage || "No Scheduled Maintenance Event found."
}
showViewIdButton={true}
viewButtonText="View Event"