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:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user