fix: 분할 패널 라벨 표시 설정 초기 렌더링 버그 수정
- displayMode가 undefined일 때 기본값 'list' 처리 누락 - 조건문을 (config.rightPanel?.displayMode || 'list') === 'list'로 변경 - 이제 처음 들어갔을 때부터 라벨 표시 설정 UI가 보임 문제: LIST 모드가 기본값인데 초기에는 설정 UI가 안 보이고 테이블 모드로 변경 후 다시 LIST로 바꿔야 보임 원인: undefined === 'list'가 false가 되어 조건문이 작동하지 않음 해결: 기본값 처리 추가
This commit is contained in:
parent
6e5e3a04f3
commit
62463e1ca8
|
|
@ -1447,7 +1447,7 @@ export const SplitPanelLayoutConfigPanel: React.FC<SplitPanelLayoutConfigPanelPr
|
|||
</div>
|
||||
|
||||
{/* 요약 표시 설정 (LIST 모드에서만) */}
|
||||
{config.rightPanel?.displayMode === "list" && (
|
||||
{(config.rightPanel?.displayMode || "list") === "list" && (
|
||||
<div className="space-y-3 rounded-lg border border-gray-200 bg-gray-50 p-3">
|
||||
<Label className="text-sm font-semibold">요약 표시 설정</Label>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue