Обновление интерфейса задач и версия 3.21.0
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 49s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 49s
This commit is contained in:
@@ -177,7 +177,6 @@ function TaskForm({ onNavigate, taskId, wishlistId, isTest: isTestFromProps = fa
|
||||
// Парсим repetition_period если он есть
|
||||
setRepetitionMode('after')
|
||||
const periodStr = data.task.repetition_period.trim()
|
||||
console.log('Parsing repetition_period:', periodStr, 'Full task data:', data.task) // Отладка
|
||||
|
||||
// PostgreSQL может возвращать INTERVAL в разных форматах:
|
||||
// - "1 day" / "1 days" / "10 days"
|
||||
@@ -194,8 +193,6 @@ function TaskForm({ onNavigate, taskId, wishlistId, isTest: isTestFromProps = fa
|
||||
const value = parseInt(match[1], 10)
|
||||
const unit = match[2].toLowerCase()
|
||||
|
||||
console.log('Matched value:', value, 'unit:', unit) // Отладка
|
||||
|
||||
if (!isNaN(value) && value >= 0) {
|
||||
// Преобразуем единицы PostgreSQL в наш формат
|
||||
if (unit.startsWith('minute')) {
|
||||
@@ -293,8 +290,6 @@ function TaskForm({ onNavigate, taskId, wishlistId, isTest: isTestFromProps = fa
|
||||
console.log('Failed to parse repetition_period:', periodStr) // Отладка
|
||||
setRepetitionPeriodValue('')
|
||||
setRepetitionPeriodType('day')
|
||||
} else {
|
||||
console.log('Successfully parsed repetition_period - value will be set') // Отладка
|
||||
}
|
||||
} else {
|
||||
console.log('No repetition_period or repetition_date in task data') // Отладка
|
||||
|
||||
Reference in New Issue
Block a user