Skip to content

Commit

Permalink
Fix types and i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Mar 18, 2020
1 parent bd1f74b commit dc98260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const painlessContextOptions = [
<strong>{defaultLabel}</strong>
<EuiText size="s" color="subdued">
<p className="euiTextColor--subdued">
{i18n.translate('xpack.painlessLab.context.scoreLabel', {
{i18n.translate('xpack.painlessLab.context.defaultLabel', {
defaultMessage: 'The script result will be converted to a string',
})}
</p>
Expand All @@ -46,7 +46,7 @@ export const painlessContextOptions = [
<strong>{filterLabel}</strong>
<EuiText size="s" color="subdued">
<p className="euiTextColor--subdued">
{i18n.translate('xpack.painlessLab.context.scoreLabel', {
{i18n.translate('xpack.painlessLab.context.filterLabel', {
defaultMessage: "Use the context of a filter's script query",
})}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function prettifyPayload(payload = '', indentationLevel = 0) {
* e.g. 1.0, is preserved instead of being coerced to an integer, e.g. 1.
*/
export function formatRequestPayload(
{ code, context, parameters, index, document, query }: Store,
{ code, context, parameters, index, document, query }: Partial<Store>,
format: PayloadFormat = PayloadFormat.UGLY
): string {
const isAdvancedContext = context === 'filter' || context === 'score';
Expand Down

0 comments on commit dc98260

Please sign in to comment.