Исправление сохранения reward_policy для задач-желаний
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m7s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m7s
This commit is contained in:
@@ -646,6 +646,8 @@ function TaskForm({ onNavigate, taskId, wishlistId, isTest: isTestFromProps = fa
|
||||
wishlist_id: taskId
|
||||
? currentWishlistId // При редактировании сохраняем текущую привязку к желанию
|
||||
: (currentWishlistId || undefined),
|
||||
// Отправляем reward_policy если задача связана с желанием
|
||||
// Проверяем currentWishlistId или wishlistInfo, так как currentWishlistId устанавливается при загрузке задачи
|
||||
reward_policy: (wishlistInfo || currentWishlistId) ? rewardPolicy : undefined,
|
||||
rewards: rewards.map(r => ({
|
||||
position: r.position,
|
||||
|
||||
Reference in New Issue
Block a user