Make backwards compatible (#29212)

This commit is contained in:
Timothy Palpant
2020-11-19 15:08:16 -05:00
committed by GitHub
parent 2dc260a486
commit c94e8e61a9
2 changed files with 15 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ export function parseUrlState(initial: string | undefined): ExploreUrlState {
};
const datasource = parsed[ParseUrlStateIndex.Datasource];
const parsedSegments = parsed.slice(ParseUrlStateIndex.SegmentsStart);
const queries = parsedSegments.filter(segment => !isSegment(segment, 'ui', 'originPanelId'));
const queries = parsedSegments.filter(segment => !isSegment(segment, 'ui', 'originPanelId', 'mode'));
const originPanelId = parsedSegments.filter(segment => isSegment(segment, 'originPanelId'))[0];
return { datasource, queries, range, originPanelId };