Browse Source

fix(prettyFormString): Fix [object, object] message (#25665)

Priscila Oliveira 3 years ago
parent
commit
faa41eec08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/actionCreators/indicator.tsx

+ 1 - 1
static/app/actionCreators/indicator.tsx

@@ -116,7 +116,7 @@ const prettyFormString = (val: ChangeValue, model: FormModel, fieldName: string)
     return PRETTY_VALUES.get(val);
   }
 
-  return `${val}`;
+  return typeof val === 'object' ? val : String(val);
 };
 
 // Some fields have objects in them.