mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
Always take timestamp into account in Node Details when time travelling (#2775)
This commit is contained in:
@@ -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('');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user