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