Don't show ints on key value editor

This commit is contained in:
Gregory Schier 2016-06-19 12:20:05 -07:00
parent 4446edfdb7
commit 4d47b0e501
2 changed files with 6 additions and 2 deletions

View File

@ -163,6 +163,10 @@ class KeyValueEditor extends Component {
return (
<ul className={classnames('key-value-editor', 'wide', className)}>
{pairs.map((pair, i) => {
if (typeof pair.value !== 'string') {
return null;
}
return (
<li key={i}>
<div className="form-control form-control--underlined form-control--wide">

View File

@ -6,7 +6,7 @@ import * as methods from '../lib/constants'
import {generateId} from './util'
import {PREVIEW_MODE_SOURCE} from '../lib/previewModes'
import {DB_PERSIST_INTERVAL} from '../lib/constants'
import {CONTENT_TYPE_JSON} from '../lib/contentTypes'
import {CONTENT_TYPE_TEXT} from '../lib/contentTypes'
export const TYPE_WORKSPACE = 'Workspace';
export const TYPE_REQUEST_GROUP = 'RequestGroup';
@ -201,7 +201,7 @@ export function requestCreate (patch = {}) {
method: methods.METHOD_GET,
activated: Date.now(),
previewMode: PREVIEW_MODE_SOURCE,
contentType: CONTENT_TYPE_JSON,
contentType: CONTENT_TYPE_TEXT,
body: '',
params: [],
headers: [],