fix: lỗi không xuất hiện nút sửa cho điểm bắt đầu và điểm kết thúc

This commit is contained in:
2026-06-17 17:39:53 +07:00
parent bfbbb66747
commit 98e4a4a340
2 changed files with 8 additions and 3 deletions
@@ -460,7 +460,7 @@ export const ItineraryTimeline = ({
Thực tế: {format(parseISO(location.actualStart), 'HH:mm')}
</div>
)}
{canEdit && !isStartPoint && !isEndPoint && ( // Only show edit/delete if canEdit
{canEdit && ( // Allow editing and deleting of all locations if user has edit permissions
<div className="flex gap-1 mt-2">
<button onClick={() => onEditLocation?.(location)} className="p-1 text-gray-400 hover:text-blue-600 transition-colors">
<Edit2 className="w-3.5 h-3.5" />