[agent-pipeline] pipe-20260329071056-9n90 round-2
This commit is contained in:
@@ -1020,8 +1020,8 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
|
||||
setColumnLabels(labels);
|
||||
|
||||
// 🆕 localStorage에서 필터 설정 복원
|
||||
if (user?.userId && component.componentId) {
|
||||
const storageKey = `table-search-filter-${user.userId}-${component.componentId}`;
|
||||
if (user?.user_id && component.componentId) {
|
||||
const storageKey = `table-search-filter-${user.user_id}-${component.componentId}`;
|
||||
const savedFilter = localStorage.getItem(storageKey);
|
||||
if (savedFilter) {
|
||||
try {
|
||||
@@ -1040,7 +1040,7 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
|
||||
if (component.tableName) {
|
||||
fetchTableColumns();
|
||||
}
|
||||
}, [component.tableName, component.componentId, user?.userId]);
|
||||
}, [component.tableName, component.componentId, user?.user_id]);
|
||||
|
||||
// 실제 사용할 필터 (설정된 필터만 사용, 자동 생성 안함)
|
||||
const searchFilters = useMemo(() => {
|
||||
@@ -1474,13 +1474,13 @@ export const InteractiveDataTable: React.FC<InteractiveDataTableProps> = ({
|
||||
|
||||
// 🆕 검색 필터 저장 함수
|
||||
const handleSaveSearchFilter = useCallback(() => {
|
||||
if (user?.userId && component.componentId) {
|
||||
const storageKey = `table-search-filter-${user.userId}-${component.componentId}`;
|
||||
if (user?.user_id && component.componentId) {
|
||||
const storageKey = `table-search-filter-${user.user_id}-${component.componentId}`;
|
||||
const filterArray = Array.from(searchFilterColumns);
|
||||
localStorage.setItem(storageKey, JSON.stringify(filterArray));
|
||||
toast.success("검색 필터 설정이 저장되었습니다.");
|
||||
}
|
||||
}, [user?.userId, component.componentId, searchFilterColumns]);
|
||||
}, [user?.user_id, component.componentId, searchFilterColumns]);
|
||||
|
||||
// 🆕 검색 필터 토글 함수
|
||||
const handleToggleFilterColumn = useCallback((columnName: string) => {
|
||||
|
||||
Reference in New Issue
Block a user