Добавлены отладочные логи для отслеживания значений SSD в компонентах QuickDetailSection и UnitDetailsSection. Обновлены GraphQL запросы для включения поля ssd. Отключено кэширование для получения актуальных данных SSD в UnitDetailsSection.
This commit is contained in:
@ -209,11 +209,21 @@ const QuickDetailSection: React.FC<QuickDetailSectionProps> = ({
|
||||
|
||||
// Если выбран узел для детального просмотра, показываем UnitDetailsSection
|
||||
if (selectedUnit) {
|
||||
const unitSsd = selectedUnit.ssd || ssd;
|
||||
console.log('🔍 QuickDetailSection передает в UnitDetailsSection:', {
|
||||
unitSsd: unitSsd ? `${unitSsd.substring(0, 50)}...` : 'отсутствует',
|
||||
unitSsdLength: unitSsd?.length,
|
||||
selectedUnitSsd: selectedUnit.ssd ? `${selectedUnit.ssd.substring(0, 50)}...` : 'отсутствует',
|
||||
fallbackSsd: ssd ? `${ssd.substring(0, 50)}...` : 'отсутствует',
|
||||
unitId: selectedUnit.unitid,
|
||||
unitName: selectedUnit.name
|
||||
});
|
||||
|
||||
return (
|
||||
<UnitDetailsSection
|
||||
catalogCode={catalogCode}
|
||||
vehicleId={vehicleId}
|
||||
ssd={selectedUnit.ssd || ssd} // Используем SSD узла
|
||||
ssd={unitSsd} // Используем SSD узла
|
||||
unitId={selectedUnit.unitid}
|
||||
unitName={selectedUnit.name}
|
||||
onBack={handleBackFromUnit}
|
||||
|
Reference in New Issue
Block a user