refactor: remove unnecessary future and ongoing incident checks from IncidentNew component

This commit is contained in:
Raj Nandan Sharma
2025-03-08 22:56:57 +05:30
parent dfffffb101
commit 1609b4fc50

View File

@@ -31,18 +31,6 @@
incidentTimeStatus = "COMPLETED";
}
let isFuture = false;
let isOngoing = false;
//is future incident
if (nowTime < startTime) {
isFuture = true;
}
//is ongoing incident
if (nowTime > startTime && nowTime < endTime) {
isOngoing = true;
}
let accordionValue = "incident-0";
if ($page.data.site.incidentGroupView == "COLLAPSED") {
accordionValue = "incident-collapse";