Skip to content

Commit

Permalink
use encode_array in an attempt to make TS happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 2, 2020
1 parent 09c1502 commit 37a4b7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function getMapsAppUrl(
const hasColumns = columns && columns.length && columns[0] !== '_source';
mapAppParams.set(
'initialLayers',
rison.encode([
rison.encode_array([
{
id: uuid(),
label: indexPattern.title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function getInitialLayersFromUrlParam() {
}

try {
return rison.decode(mapAppParams.get('initialLayers'));
return rison.decode_array(mapAppParams.get('initialLayers'));
} catch (e) {
toastNotifications.addWarning({
title: i18n.translate('xpack.maps.initialLayers.unableToParseTitle', {
Expand Down

0 comments on commit 37a4b7b

Please sign in to comment.