From cef359238b3fc7a9d3cedf02c7d0d516257aef3b Mon Sep 17 00:00:00 2001 From: mohamad Date: Sat, 7 Jun 2025 17:02:40 +0200 Subject: [PATCH] Fix ChoresPage frequency option access and clean up auto-save comments --- fe/src/pages/ChoresPage.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fe/src/pages/ChoresPage.vue b/fe/src/pages/ChoresPage.vue index 5a35f83..db454cd 100644 --- a/fe/src/pages/ChoresPage.vue +++ b/fe/src/pages/ChoresPage.vue @@ -596,7 +596,7 @@ const formatDate = (dateString: string | null): string => { const formatFrequency = (frequency?: ChoreFrequency) => { if (!frequency) return ''; - const option = frequencyOptions.find(opt => opt.value === frequency) + const option = frequencyOptions.value.find(opt => opt.value === frequency) return option ? option.label : frequency.charAt(0).toUpperCase() + frequency.slice(1); } @@ -832,7 +832,6 @@ const autoSaveForm = () => { // This logic should be revised. Auto-submitting a form is usually not desired. // Consider saving to a local draft instead. // if (isEditing.value && selectedChore.value) { - // console.log("Attempting auto-save (currently disabled logic)"); // // onSubmit() // This is risky; onSubmit usually makes an API call // } }, 3000) // Auto-save after 3 seconds of inactivity