격자 저장문제 수정
This commit is contained in:
@@ -354,7 +354,10 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
||||
if (!tableConfig.selectedTable) return;
|
||||
|
||||
try {
|
||||
const cacheKey = `columns_${tableConfig.selectedTable}`;
|
||||
// 🔥 FIX: 캐시 키에 회사 코드 포함 (멀티테넌시 지원)
|
||||
const currentUser = JSON.parse(localStorage.getItem("currentUser") || "{}");
|
||||
const companyCode = currentUser.companyCode || "UNKNOWN";
|
||||
const cacheKey = `columns_${tableConfig.selectedTable}_${companyCode}`;
|
||||
const cached = tableColumnCache.get(cacheKey);
|
||||
if (cached && Date.now() - cached.timestamp < TABLE_CACHE_TTL) {
|
||||
const labels: Record<string, string> = {};
|
||||
|
||||
Reference in New Issue
Block a user