mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Don't show ints on key value editor
This commit is contained in:
parent
4446edfdb7
commit
4d47b0e501
@ -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">
|
||||
|
@ -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: [],
|
||||
|
Loading…
Reference in New Issue
Block a user