Always take timestamp into account in Node Details when time travelling (#2775)

This commit is contained in:
Filip Barl
2017-08-01 12:40:08 +02:00
committed by GitHub
parent 2c63206525
commit bc7ad7a78a

View File

@@ -288,10 +288,14 @@ export function getNodeDetails(getState, dispatch) {
if (obj && topologyUrlsById.has(obj.topologyId)) {
const topologyUrl = topologyUrlsById.get(obj.topologyId);
let urlComponents = [getApiPath(), topologyUrl, '/', encodeURIComponent(obj.id)];
if (currentTopologyId === obj.topologyId) {
// Only forward filters for nodes in the current topology
const optionsQuery = buildUrlQuery(activeTopologyOptionsSelector(state), state);
urlComponents = urlComponents.concat(['?', optionsQuery]);
// Only forward filters for nodes in the current topology.
const topologyOptions = currentTopologyId === obj.topologyId
? activeTopologyOptionsSelector(state) : makeMap();
const query = buildUrlQuery(topologyOptions, state);
if (query) {
urlComponents = urlComponents.concat(['?', query]);
}
const url = urlComponents.join('');