|
|
|
@ -247,11 +247,11 @@ const ControlMain = () => {
|
|
|
|
|
<span>기온</span> |
|
|
|
|
<span> |
|
|
|
|
{!isClickObject |
|
|
|
|
? controlWheather.items.item.length > 0 |
|
|
|
|
? controlWheather?.items?.item.length > 0 |
|
|
|
|
? controlWheather?.items?.item[12]?.fcstValue |
|
|
|
|
: 0 |
|
|
|
|
: controlDetail.items.item.length > 0 |
|
|
|
|
? controlDetail?.items.item[12].fcstValue |
|
|
|
|
: controlDetail?.items?.item.length > 0 |
|
|
|
|
? controlDetail?.items?.item[12].fcstValue |
|
|
|
|
: 0} |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
@ -262,10 +262,10 @@ const ControlMain = () => {
|
|
|
|
|
className='navigation-icon' |
|
|
|
|
style={{ |
|
|
|
|
transform: !isClickObject |
|
|
|
|
? controlWheather.items.item.length > null |
|
|
|
|
? controlWheather?.items?.item.length > null |
|
|
|
|
? `rotate(${controlWheather?.items?.item[3]?.fcstValue}deg)` |
|
|
|
|
: 0 |
|
|
|
|
: controlDetail.items.item.length > 0 |
|
|
|
|
: controlDetail?.items?.item.length > 0 |
|
|
|
|
? `rotate(${controlDetail?.items.item[3].fcstValue}deg)` |
|
|
|
|
: 0 |
|
|
|
|
}} |
|
|
|
@ -276,10 +276,10 @@ const ControlMain = () => {
|
|
|
|
|
<span>풍속</span> |
|
|
|
|
<span> |
|
|
|
|
{!isClickObject |
|
|
|
|
? controlWheather.items.item.length > 0 |
|
|
|
|
? controlWheather?.items?.item.length > 0 |
|
|
|
|
? controlWheather?.items?.item[4]?.fcstValue |
|
|
|
|
: 0 |
|
|
|
|
: controlDetail.items.item.length > 0 |
|
|
|
|
: controlDetail?.items?.item.length > 0 |
|
|
|
|
? controlDetail?.items.item[4].fcstValue |
|
|
|
|
: 0} |
|
|
|
|
m/s |
|
|
|
|