Browse Source

fix: wrong option name... sigh (#43350)

- The option name is `.problem-creation` not just `-creation` sigh
William Mak 2 years ago
parent
commit
3ff5d29643
2 changed files with 3 additions and 3 deletions
  1. 2 2
      static/app/views/admin/adminSettings.tsx
  2. 1 1
      static/app/views/admin/options.tsx

+ 2 - 2
static/app/views/admin/adminSettings.tsx

@@ -33,7 +33,7 @@ const optionsAvailable = [
   'performance.issues.compressed_assets.la-rollout',
   'performance.issues.compressed_assets.ea-rollout',
   'performance.issues.compressed_assets.ga-rollout',
-  'performance.issues.file_io_main_thread-creation',
+  'performance.issues.file_io_main_thread.problem-creation',
 ];
 
 type Field = ReturnType<typeof getOption>;
@@ -137,7 +137,7 @@ export default class AdminSettings extends AsyncView<{}, State> {
             </Panel>
             <Panel>
               <PanelHeader>Performance Issues - File IO on Main Thread</PanelHeader>
-              {fields['performance.issues.file_io_main_thread-creation']}
+              {fields['performance.issues.file_io_main_thread.problem-creation']}
             </Panel>
           </Feature>
         </Form>

+ 1 - 1
static/app/views/admin/options.tsx

@@ -272,7 +272,7 @@ const performanceOptionDefinitions: Field[] = [
     ...HIGH_THROUGHPUT_RATE_OPTION,
   },
   {
-    key: 'performance.issues.file_io_main_thread-creation',
+    key: 'performance.issues.file_io_main_thread.problem-creation',
     label: t('File IO Problem Creation Rate'),
     help: t(
       'Controls the overall rate at which performance problems are detected by the File IO Detector'