Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered committed Feb 6, 2025
1 parent 78e4161 commit 2ade9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/maintenanceTaskStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const useMaintenanceTaskStore = defineStore('maintenanceTask', () => {
// Task list
const tasks = ref(DESKTOP_MAINTENANCE_TASKS)

const taskStates = ref(
const taskRunners = ref(
new Map<MaintenanceTask['id'], MaintenanceTaskRunner>(
DESKTOP_MAINTENANCE_TASKS.map((x) => [x.id, new MaintenanceTaskRunner(x)])
)
Expand All @@ -116,7 +116,7 @@ export const useMaintenanceTaskStore = defineStore('maintenanceTask', () => {
* @param task Task to get the matching state object for
* @returns The state object for this task
*/
const getRunner = (task: MaintenanceTask) => taskStates.value.get(task.id)!
const getRunner = (task: MaintenanceTask) => taskRunners.value.get(task.id)!

/**
* Updates the task list with the latest validation state.
Expand Down

0 comments on commit 2ade9aa

Please sign in to comment.