Compare commits
No commits in common. "74bd5d7b5bb29b0e145dea0f081bef27d68b2505" and "5e7dc3214e7737bb5a37f9168598980b844ffecc" have entirely different histories.
74bd5d7b5b
...
5e7dc3214e
@ -819,12 +819,7 @@ export const useTrestle = () => {
|
||||
|
||||
// 발전 시뮬레이션 용 각도 재계산
|
||||
const getAzimuth = (parent) => {
|
||||
if (typeof parent === 'string') {
|
||||
console.warn('getAzimuth: parent is string, expected object', parent);
|
||||
return 0; // 또는 적절한 기본값
|
||||
}
|
||||
|
||||
const { moduleCompass, surfaceCompass, direction } = parent || {};
|
||||
const { moduleCompass, surfaceCompass, direction } = parent
|
||||
|
||||
if (surfaceCompass) {
|
||||
return -surfaceCompass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user