Skip to content

Commit a64087e

Browse files
samsharabarshathakuri
authored andcommitted
fix: remove duplicate is_active in surge alert query
1 parent 7aad4f4 commit a64087e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/views/AllSurgeAlerts/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export function Component() {
197197
const nowMs = new Date().getTime();
198198

199199
const closed = isDefined(item.end)
200-
? new Date(item.end).getTime() < today : undefined;
200+
? new Date(item.end).getTime() < nowMs : undefined;
201201

202202
if (isDefined(endDate) && closed) {
203203
return endDate.toLocaleString();
@@ -250,6 +250,7 @@ export function Component() {
250250
),
251251
]),
252252
[
253+
strings.surgeAlertImmediately,
253254
strings.surgeAlertDate,
254255
strings.surgeAlertDuration,
255256
strings.surgeAlertStartDate,

src/views/EmergencySurge/SurgeTable/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export default function SurgeTable(props: Props) {
6565
preserveResponse: true,
6666
query: {
6767
event: Number(emergencyId),
68-
is_active: true,
6968
limit,
7069
offset,
7170

0 commit comments

Comments
 (0)