쿼리 테스트 시 chartConfig를 리셋하도록 수정

This commit is contained in:
dohyeons 2025-10-15 15:17:05 +09:00
parent eff3b45dc9
commit 95c685051d
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ export function ElementConfigModal({ element, isOpen, onClose, onSave }: Element
// 쿼리 테스트 결과 처리
const handleQueryTest = useCallback((result: QueryResult) => {
setQueryResult(result);
// 쿼리가 변경되었으므로 차트 설정 초기화 (X/Y축 리셋)
console.log("🔄 쿼리 변경 감지 - 차트 설정 초기화");
setChartConfig({});
}, []);
// 다음 단계로 이동