mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +00:00
Fix initialization of selection in App (#239)
This commit is contained in:
parent
ccdd732bbd
commit
38803b73f9
@ -391,7 +391,7 @@ export function App() {
|
|||||||
setState(
|
setState(
|
||||||
loadMoreFromWikitree ? AppState.LOADING_MORE : AppState.SHOWING_CHART,
|
loadMoreFromWikitree ? AppState.LOADING_MORE : AppState.SHOWING_CHART,
|
||||||
);
|
);
|
||||||
updateDisplay(args.selection!);
|
updateDisplay(getSelection(data!.chartData, args.selection));
|
||||||
if (loadMoreFromWikitree) {
|
if (loadMoreFromWikitree) {
|
||||||
try {
|
try {
|
||||||
const data = await loadWikiTree(args.selection!.id, intl);
|
const data = await loadWikiTree(args.selection!.id, intl);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user