feat: Enhance dynamic form service and tabs widget functionality
- Added error handling in DynamicFormService to throw an error when a record is not found during deletion, improving robustness. - Updated TabsWidget to load screen information in parallel with layout data, enhancing performance and user experience. - Implemented logic to supplement missing screen information for tabs, ensuring all relevant data is available for rendering. - Enhanced component rendering functions to pass additional screen information, improving data flow and interaction within the widget.
This commit is contained in:
@@ -1290,6 +1290,11 @@ export class DynamicFormService {
|
||||
return res.rows;
|
||||
});
|
||||
|
||||
// 삭제된 행이 없으면 레코드를 찾을 수 없는 것
|
||||
if (!result || !Array.isArray(result) || result.length === 0) {
|
||||
throw new Error(`테이블 ${tableName}에서 ID '${id}'에 해당하는 레코드를 찾을 수 없습니다.`);
|
||||
}
|
||||
|
||||
console.log("✅ 서비스: 실제 테이블 삭제 성공:", result);
|
||||
|
||||
// 🔥 조건부 연결 실행 (DELETE 트리거)
|
||||
|
||||
Reference in New Issue
Block a user