Fix initialization of selection in App (#239)

This commit is contained in:
Adam Gross 2025-12-31 09:46:46 -08:00 committed by GitHub
parent ccdd732bbd
commit 38803b73f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);