mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Fixing a 1.x bug with fields
This commit is contained in:
parent
78c1814f71
commit
61a71a0e9b
1 changed files with 2 additions and 2 deletions
|
@ -294,10 +294,10 @@ define(function (require) {
|
|||
return function (eventContext, newState) {
|
||||
var current = ($scope.player.current === $scope.player.total),
|
||||
data = $scope.timelineData;
|
||||
if (data[data.length - 1].fields['@timestamp'] < newState['@timestamp']) {
|
||||
if (getValue(data[data.length - 1].fields['@timestamp']) < getValue(newState['@timestamp'])) {
|
||||
// newer state, that what we have, go retrieve more
|
||||
// note: we can't just use the new state as it cause to miss some states
|
||||
getTimeline(10, { from: data[data.length - 1].fields['@timestamp']}).then(
|
||||
getTimeline(10, { from: getValue(data[data.length - 1].fields['@timestamp'])}).then(
|
||||
function (newData) {
|
||||
data.push.apply(data, newData);
|
||||
handleTimeline(data, current);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue