fix: ESLint no-catch-shadow 경고 해결

catch 블록의 'error' 변수명을 'err'로 변경하여
외부 state 변수와의 명칭 충돌 해결:

- MediaPlayer.v2.jsx (Line 447)
- ProductVideo.v2.jsx (Line 595)
- MediaPanel.jsx (Line 344)

🎯 효과:
- ESLint no-catch-shadow 경고 제거
- 코드 명확성 향상

📝 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-12 19:41:46 +09:00
parent 660abbf691
commit ee4bb17ed7
3 changed files with 6 additions and 6 deletions

View File

@@ -444,8 +444,8 @@ const MediaPlayerV2 = forwardRef((props, ref) => {
if (videoRef.current) {
try {
videoRef.current.pause?.();
} catch (error) {
console.warn('[MediaPlayer.v2] 비디오 정지 실패:', error);
} catch (err) {
console.warn('[MediaPlayer.v2] 비디오 정지 실패:', err);
}
}

View File

@@ -592,8 +592,8 @@ export function ProductVideoV2({
if (videoPlayerRef.current) {
try {
videoPlayerRef.current.pause?.();
} catch (error) {
console.warn('[ProductVideoV2] 비디오 정지 실패:', error);
} catch (err) {
console.warn('[ProductVideoV2] 비디오 정지 실패:', err);
}
}
};

View File

@@ -341,8 +341,8 @@ const MediaPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
if (videoPlayer.current) {
try {
videoPlayer.current.pause?.();
} catch (error) {
console.warn('[MediaPanel] 비디오 정지 실패:', error);
} catch (err) {
console.warn('[MediaPanel] 비디오 정지 실패:', err);
}
}
};