Skip to content

Commit

Permalink
Improve issues found while preparing the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Jan 30, 2020
1 parent 7af0845 commit 98f01f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function Editor({ code, setCode, renderMainControls }: Props) {
<EuiPageContent panelPaddingSize="s">
<CodeEditor
languageId="painless"
height={250}
height={380}
value={code}
onChange={setCode}
options={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function PainlessPlayground({
]}
/>
</EuiFlexItem>
{response.error || response.result ? (
{response.error || typeof response.result !== 'undefined' ? (
<EuiFlexItem>
<Output response={response} />
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function Settings({
<div style={{ border: '1px solid #D3DAE6', padding: '3px' }}>
<CodeEditor
languageId="javascript"
height={100}
height={150}
value={contextSetup.params}
onChange={(value: string) => setContextSetup({ params: value })}
options={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function buildRequestPayload(
request.context = context;
request.context_setup = {
index: contextSetup.index,
document: parseJSON(contextSetup.doc),
document: parseJSON(contextSetup.document),
};
return request;
}
Expand Down

0 comments on commit 98f01f0

Please sign in to comment.