Browse Source

ref(js): Remove unnecessary non-null assertions in monitorForm (#49291)

Evan Purkhiser 1 year ago
parent
commit
7302904dc6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/views/monitors/components/monitorForm.tsx

+ 2 - 2
static/app/views/monitors/components/monitorForm.tsx

@@ -105,12 +105,12 @@ function transformData(_data: Record<string, any>, model: FormModel) {
     }
 
     if (Array.isArray(data.config.schedule) && k === 'config.schedule.frequency') {
-      data.config.schedule![0] = parseInt(v as string, 10);
+      data.config.schedule[0] = parseInt(v as string, 10);
       return data;
     }
 
     if (Array.isArray(data.config.schedule) && k === 'config.schedule.interval') {
-      data.config.schedule![1] = v as IntervalConfig['schedule'][1];
+      data.config.schedule[1] = v as IntervalConfig['schedule'][1];
       return data;
     }