Index: arms/html/analysisGantt/content-container.html
===================================================================
diff -u -r500ca9ac8e7ef9c8bc3124dc578f35f6519e44ad -re1422673ece8c789e68e386ecbec29dc3e22f0d4
--- arms/html/analysisGantt/content-container.html (.../content-container.html) (revision 500ca9ac8e7ef9c8bc3124dc578f35f6519e44ad)
+++ arms/html/analysisGantt/content-container.html (.../content-container.html) (revision e1422673ece8c789e68e386ecbec29dc3e22f0d4)
@@ -349,11 +349,9 @@
-
-
-
+
@@ -452,3 +450,10 @@
+
+
Index: arms/js/analysisGantt.js
===================================================================
diff -u -r819488411ea8ae3cba1cc0193efc18a77be6b3a7 -re1422673ece8c789e68e386ecbec29dc3e22f0d4
--- arms/js/analysisGantt.js (.../analysisGantt.js) (revision 819488411ea8ae3cba1cc0193efc18a77be6b3a7)
+++ arms/js/analysisGantt.js (.../analysisGantt.js) (revision e1422673ece8c789e68e386ecbec29dc3e22f0d4)
@@ -296,15 +296,19 @@
////////////////////////////////////////////////////////////////////////////////////////
// -------------------- 데이터 테이블을 만드는 템플릿으로 쓰기에 적당하게 리팩토링 함. ------------------ //
function getStatusMonitorData(selectId, endPointUrl) {
+ $("#gantt-target").empty();
+
$.ajax({
url: "/auth-user/api/arms/reqStatus" + endPointUrl,
type: "GET",
dataType: "json",
progress: true,
statusCode: {
200: function (data) {
- const tasks = setGanttTasks(data);
- gantt = new Gantt("#gantt-target", tasks);
+ if (!isEmpty(data)) {
+ const tasks = setGanttTasks(data);
+ gantt = new Gantt("#gantt-target", tasks);
+ }
}
}
});