mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Fix setCurrentHistoryId in legacy history panel context
If we create a new history in the legacy history the store does not get updated, so https://github.com/galaxyproject/galaxy/blame/3f47effa087f4049132da65643396d58a2be51d1/client/src/components/History/model/historyStore.js#L48 will always return the most recently used history. This is a little silly in that we will load the history twice, but we don't switch the history so often that it should matter.
This commit is contained in:
@@ -30,7 +30,7 @@ export function syncCurrentHistoryToGalaxy(galaxy$, store, cfg = {}) {
|
||||
);
|
||||
|
||||
return historyId$.subscribe(
|
||||
(id) => store.commit("betaHistory/setCurrentHistoryId", id),
|
||||
(id) => store.dispatch("betaHistory/setCurrentHistoryId", id),
|
||||
(err) => console.warn("syncCurrentHistoryToGalaxy error", err),
|
||||
() => console.log("syncCurrentHistoryToGalaxy complete")
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user