Fix ChoresPage frequency option access and clean up auto-save comments
This commit is contained in:
parent
5fffd4d2f5
commit
cef359238b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user